![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://coin3d.github.io https://www.kongsberg.com/en/kogt/ |
The SoConvexDataCache class is used to cache convexified polygons. More...
#include <Inventor/caches/SoConvexDataCache.h>
Public Types | |
enum | Binding { NONE = 0 , PER_FACE , PER_FACE_INDEXED , PER_VERTEX , PER_VERTEX_INDEXED } |
The Binding enum is used to specify bindings. More... | |
Additional Inherited Members | |
![]() | |
virtual void | destroy (SoState *state) |
virtual | ~SoCache () |
The SoConvexDataCache class is used to cache convexified polygons.
SoConvexDataCache is used to speed up rendering of concave polygons by tessellating all polygons into triangles and storing the newly generated primitives in an internal cache.
This class is not part of the original SGI Open Inventor v2.1 API, but is a Coin extension.
The Binding enum is used to specify bindings.
Binding applies to normals, materials and texture coordinates.
Constructor with state being the current state.
|
virtual |
Destructor.
void SoConvexDataCache::generate | ( | const SoCoordinateElement *const | coords, |
const SbMatrix & | matrix, | ||
const int32_t * | vind, | ||
const int | numv, | ||
const int32_t * | mind, | ||
const int32_t * | nind, | ||
const int32_t * | tind, | ||
const Binding | matbind, | ||
const Binding | normbind, | ||
const Binding | texbind | ||
) |
Generates the convexified data. FIXME: doc
Returns a pointer to the convexified coordinate indices.
int SoConvexDataCache::getNumCoordIndices | ( | void | ) | const |
Returns the number of coordinate indices.
Returns the convexified material indices.
int SoConvexDataCache::getNumMaterialIndices | ( | void | ) | const |
Returns the number of material indices.
Returns the convexified normal indices.
int SoConvexDataCache::getNumNormalIndices | ( | void | ) | const |
Returns the number of normal indices.
Returns the convexified texture coordinate indices.
int SoConvexDataCache::getNumTexIndices | ( | void | ) | const |
Returns the number of texture coordinate indices.