OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Abstract IsoSurface. More...
#include <OgreVolumeIsoSurface.h>
Public Member Functions | |
virtual | ~IsoSurface (void) |
virtual void | addMarchingCubesTriangles (const Vector3 *corners, const Vector4 *volumeValues, MeshBuilder *mb) const =0 |
Adds triangles to a MeshBuilder via Marching Cubes. | |
virtual void | addMarchingSquaresTriangles (const Vector3 *corners, const Vector4 *volumeValues, const size_t *indices, const Real maxDistance, MeshBuilder *mb) const =0 |
Adds triangles to a MeshBuilder via Marching Squares. | |
Static Public Attributes | |
static const size_t | MS_CORNERS_BACK [4] |
To call Marching Squares with a cube on its back. | |
static const size_t | MS_CORNERS_BOTTOM [4] |
To call Marching Squares with a cube on its bottom. | |
static const size_t | MS_CORNERS_FRONT [4] |
To call Marching Squares with a cube on its front. | |
static const size_t | MS_CORNERS_LEFT [4] |
To call Marching Squares with a cube on its left. | |
static const size_t | MS_CORNERS_RIGHT [4] |
To call Marching Squares with a cube on its right. | |
static const size_t | MS_CORNERS_TOP [4] |
To call Marching Squares with a cube on its top. | |
Abstract IsoSurface.
|
pure virtual |
Adds triangles to a MeshBuilder via Marching Cubes.
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.
|
pure virtual |
Adds triangles to a MeshBuilder via Marching Squares.
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.
To call Marching Squares with a cube on its front.
To call Marching Squares with a cube on its back.
To call Marching Squares with a cube on its left.
To call Marching Squares with a cube on its right.
To call Marching Squares with a cube on its top.
To call Marching Squares with a cube on its bottom.