OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Class for the generation of the DualGrid. More...
#include <OgreVolumeDualGridGenerator.h>
Public Member Functions | |
DualGridGenerator (void) | |
Constructor. | |
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. | |
DualCell | getDualCell (size_t i) const |
Gets a dual cell. | |
size_t | getDualCellCount (void) const |
Gets the amount of generated dual cells. | |
Entity * | getDualGrid (SceneManager *sceneManager) |
Gets the lazily created entity of the dualgrid debug visualization. | |
Class for the generation of the DualGrid.
Ogre::Volume::DualGridGenerator::DualGridGenerator | ( | void | ) |
Constructor.
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.
root | The octree root node. |
is | To contour the dualcells. |
mb | To store the triangles of the contour. |
maxMSDistance | The maximum distance to the isosurface where to generate skirts. |
totalFrom | The global from. |
totalTo | The global to. |
saveDualCells | Whether to save the generated dualcells of the generated dual cells. |
Entity * Ogre::Volume::DualGridGenerator::getDualGrid | ( | SceneManager * | sceneManager | ) |
Gets the lazily created entity of the dualgrid debug visualization.
sceneManager | The scenemanager creating the entity. |
Gets the amount of generated dual cells.
Gets a dual cell.
i | The index of the wanted dual cell. |