Abstract IsoSurface.
More...
#include <OgreVolumeIsoSurface.h>
◆ ~IsoSurface()
virtual Ogre::Volume::IsoSurface::~IsoSurface |
( |
| ) |
|
|
virtual |
◆ addMarchingCubesTriangles()
virtual void Ogre::Volume::IsoSurface::addMarchingCubesTriangles |
( |
const Vector3 * |
corners, |
|
|
const Vector4 * |
volumeValues, |
|
|
MeshBuilder * |
mb |
|
) |
| const |
|
pure virtual |
Adds triangles to a MeshBuilder via Marching Cubes.
- Parameters
-
corners | The corners of the cube to triangulate via Marching Cubes. |
volumeValues | The cached volume values, one Vector4 consists of gradient (x, y, z) and density (w). If 0 is given, it will be calculated. |
mb | The MeshBuilder to add the triangles to. |
Implemented in Ogre::Volume::IsoSurfaceMC.
◆ addMarchingSquaresTriangles()
virtual void Ogre::Volume::IsoSurface::addMarchingSquaresTriangles |
( |
const Vector3 * |
corners, |
|
|
const Vector4 * |
volumeValues, |
|
|
const size_t * |
indices, |
|
|
const Real |
maxDistance, |
|
|
MeshBuilder * |
mb |
|
) |
| const |
|
pure virtual |
Adds triangles to a MeshBuilder via Marching Squares.
- Parameters
-
corners | The corners of the cube where one side is to be triangulated. |
volumeValues | The cached volume values, one Vector4 consists of gradient (x, y, z) and density (w). If 0 is given, it will be calculated. |
indices | The four corners of the cube (== one side) to triangulate. |
maxDistance | The maximum distance to the surface where triangles are generated. |
mb | The MeshBuilder to add the triangles to. |
Implemented in Ogre::Volume::IsoSurfaceMC.
◆ MS_CORNERS_BACK
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_BACK[4] |
|
static |
To call Marching Squares with a cube on its back.
◆ MS_CORNERS_BOTTOM
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_BOTTOM[4] |
|
static |
To call Marching Squares with a cube on its bottom.
◆ MS_CORNERS_FRONT
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_FRONT[4] |
|
static |
To call Marching Squares with a cube on its front.
◆ MS_CORNERS_LEFT
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_LEFT[4] |
|
static |
To call Marching Squares with a cube on its left.
◆ MS_CORNERS_RIGHT
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_RIGHT[4] |
|
static |
To call Marching Squares with a cube on its right.
◆ MS_CORNERS_TOP
const size_t Ogre::Volume::IsoSurface::MS_CORNERS_TOP[4] |
|
static |
To call Marching Squares with a cube on its top.
The documentation for this class was generated from the following file: