OGRE  1.10.12
Object-Oriented Graphics Rendering Engine
Ogre::Volume::DualGridGenerator Class Reference

Class for the generation of the DualGrid. More...

#include <OgreVolumeDualGridGenerator.h>

+ Inheritance diagram for Ogre::Volume::DualGridGenerator:

Public Member Functions

 DualGridGenerator (void)
 Constructor. More...
 
void generateDualGrid (const OctreeNode *root, IsoSurface *is, MeshBuilder *mb, Real maxMSDistance, const Vector3 &totalFrom, const Vector3 &totalTo, bool saveDualCells)
 Generates the dualgrid of the given octree root node. More...
 
DualCell getDualCell (size_t i) const
 Gets a dual cell. More...
 
size_t getDualCellCount (void) const
 Gets the amount of generated dual cells. More...
 
EntitygetDualGrid (SceneManager *sceneManager)
 Gets the lazily created entity of the dualgrid debug visualization. More...
 

Detailed Description

Class for the generation of the DualGrid.

Constructor & Destructor Documentation

◆ DualGridGenerator()

Ogre::Volume::DualGridGenerator::DualGridGenerator ( void  )

Constructor.

Member Function Documentation

◆ generateDualGrid()

void Ogre::Volume::DualGridGenerator::generateDualGrid ( const OctreeNode root,
IsoSurface is,
MeshBuilder mb,
Real  maxMSDistance,
const Vector3 totalFrom,
const Vector3 totalTo,
bool  saveDualCells 
)

Generates the dualgrid of the given octree root node.

Parameters
rootThe octree root node.
isTo contour the dualcells.
mbTo store the triangles of the contour.
maxMSDistanceThe maximum distance to the isosurface where to generate skirts.
totalFromThe global from.
totalToThe global to.
saveDualCellsWhether to save the generated dualcells of the generated dual cells.

◆ getDualGrid()

Entity* Ogre::Volume::DualGridGenerator::getDualGrid ( SceneManager sceneManager)

Gets the lazily created entity of the dualgrid debug visualization.

Parameters
sceneManagerThe scenemanager creating the entity.
Returns
The entity. Might be null if no dualcells are available.

◆ getDualCellCount()

size_t Ogre::Volume::DualGridGenerator::getDualCellCount ( void  ) const
inline

Gets the amount of generated dual cells.

Returns
The amount of generated dual cells.

◆ getDualCell()

DualCell Ogre::Volume::DualGridGenerator::getDualCell ( size_t  i) const
inline

Gets a dual cell.

Parameters
iThe index of the wanted dual cell.
Returns
The dual cell.

The documentation for this class was generated from the following file: