![]() |
VR-Forces 4.0.4 Class Documentation
|
A version of btTriangleMesh that also holds soil type for each polygon. More...

Public Member Functions | |
| DtTriangleMeshWithSoil (bool use32bitIndices=true, bool use4componentVertices=true) | |
| virtual | ~DtTriangleMeshWithSoil () |
| void | addTriangleWithSurface (const btVector3 &vertex0, const btVector3 &vertex1, const btVector3 &vertex2, const DtSurface &surface, bool removeDuplicateVertices=false) |
| DtSurface | triangleSurface (unsigned int triangleIndex) const |
Protected Member Functions | |
| void | initializeSurfaceArray () |
| Changes myUseSurfaceArray to true, and initialized mySurfaceTypes to have Unspecified for all already defined triangles in the mesh. | |
| void | syncSurfaceArray () |
| Ensures that the length of mySurfaceTypes is the same as the number of triangles in the base class. | |
Protected Attributes | |
| bool | myUseSurfaceArray |
| When this is false, mySurfaceTypes is empty, and all triangles are considered to have "Unspecified" as their surface type. | |
| btAlignedObjectArray< DtSurface > | mySurfaceTypes |
A version of btTriangleMesh that also holds soil type for each polygon.
| DtTriangleMeshWithSoil::DtTriangleMeshWithSoil | ( | bool | use32bitIndices = true, |
| bool | use4componentVertices = true |
||
| ) | [inline] |
| virtual DtTriangleMeshWithSoil::~DtTriangleMeshWithSoil | ( | ) | [inline, virtual] |
| void DtTriangleMeshWithSoil::addTriangleWithSurface | ( | const btVector3 & | vertex0, |
| const btVector3 & | vertex1, | ||
| const btVector3 & | vertex2, | ||
| const DtSurface & | surface, | ||
| bool | removeDuplicateVertices = false |
||
| ) |
| DtSurface DtTriangleMeshWithSoil::triangleSurface | ( | unsigned int | triangleIndex | ) | const |
| void DtTriangleMeshWithSoil::initializeSurfaceArray | ( | ) | [protected] |
Changes myUseSurfaceArray to true, and initialized mySurfaceTypes to have Unspecified for all already defined triangles in the mesh.
| void DtTriangleMeshWithSoil::syncSurfaceArray | ( | ) | [protected] |
Ensures that the length of mySurfaceTypes is the same as the number of triangles in the base class.
(in case addTriagle was called)
bool DtTriangleMeshWithSoil::myUseSurfaceArray [protected] |
When this is false, mySurfaceTypes is empty, and all triangles are considered to have "Unspecified" as their surface type.
When true, then mySurfaceTypes holds the surface characteristics for each triangle.
btAlignedObjectArray<DtSurface> DtTriangleMeshWithSoil::mySurfaceTypes [protected] |