OGRE
1.9.0
|
Marching Cubes implementation like at http://local.wasp.uwa.edu.au/~pbourke/geometry/polygonise/. More...
#include <OgreVolumeIsoSurfaceMC.h>
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. | |
Protected Member Functions | |
Vector3 | interpolate (const Vector3 &v0, const Vector3 &v1, const Vector4 &val0, const Vector4 &val1, Vector3 &normal) const |
Linear interpolation between two vectors based on some values associated to them. | |
Protected Attributes | |
const Source * | mSrc |
To get the isovalue and normal. | |
Static Protected Attributes | |
static const Real | ISO_LEVEL |
The value where our isosurface is. | |
Marching Cubes implementation like at http://local.wasp.uwa.edu.au/~pbourke/geometry/polygonise/.
Definition at line 39 of file OgreVolumeIsoSurfaceMC.h.
Constructor.
src | The source for the isovalues and normals there. |
|
virtual |
Overridden from IsoSurface.
Implements Ogre::Volume::IsoSurface.
|
virtual |
Overridden from IsoSurface.
Implements Ogre::Volume::IsoSurface.
|
protected |
Linear interpolation between two vectors based on some values associated to them.
v0 | The first vector. |
v1 | The second vector. |
val0 | The value for the first vector. |
val1 | The value for the second vector. |
normal | Reference to a vector where the normal will be stored. |
Definition at line 58 of file OgreVolumeIsoSurfaceMC.h.
References Ogre::Vector3::normalise(), Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
The value where our isosurface is.
Definition at line 45 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its back.
Definition at line 62 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its bottom.
Definition at line 74 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its front.
Definition at line 59 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its left.
Definition at line 65 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its right.
Definition at line 68 of file OgreVolumeIsoSurface.h.
To call Marching Squares with a cube on its top.
Definition at line 71 of file OgreVolumeIsoSurface.h.
To get the isovalue and normal.
Definition at line 48 of file OgreVolumeIsoSurface.h.