18 #ifndef BT_BVH_TRIANGLE_MATERIAL_MESH_SHAPE_H
19 #define BT_BVH_TRIANGLE_MATERIAL_MESH_SHAPE_H
35 btBvhTriangleMeshShape(meshInterface, useQuantizedAabbCompression, buildBvh)
39 const unsigned char *vertexbase;
43 const unsigned char *indexbase;
52 m_meshInterface->getLockedReadOnlyVertexIndexBase(
68 btBvhTriangleMeshShape(meshInterface, useQuantizedAabbCompression, bvhAabbMin, bvhAabbMax, buildBvh)
72 const unsigned char *vertexbase;
76 const unsigned char *indexbase;
85 m_meshInterface->getLockedReadOnlyVertexIndexBase(
112 virtual const char*
getName()
const {
return "MULTIMATERIALTRIANGLEMESH";}
115 const btMaterial * getMaterialProperties(
int partID,
int triIndex);
120 #endif //BT_BVH_TRIANGLE_MATERIAL_MESH_SHAPE_H
btMultimaterialTriangleMeshShape(btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true)
This file was created by Alex Silverman.
btAlignedObjectArray< btMaterial * > m_materialList
The btBvhTriangleMeshShape is a static-triangle mesh shape, it can only be used for fixed/non-moving ...
virtual const char * getName() const
virtual ~btMultimaterialTriangleMeshShape()
btVector3 can be used to represent 3D points and vectors.
virtual int getNumSubParts() const =0
getNumSubParts returns the number of seperate subparts each subpart has a continuous array of vertice...
#define ATTRIBUTE_ALIGNED16(a)
This file was created by Alex Silverman.
The btStridingMeshInterface is the interface class for high performance generic access to triangle me...
int ** m_triangleMaterials
#define BT_DECLARE_ALIGNED_ALLOCATOR()
btMultimaterialTriangleMeshShape(btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, const btVector3 &bvhAabbMin, const btVector3 &bvhAabbMax, bool buildBvh=true)
optionally pass in a larger bvh aabb, used for quantization. This allows for deformations within this...
PHY_ScalarType
PHY_ScalarType enumerates possible scalar types.