Blender  V3.3
Functions | Variables
btMultimaterialTriangleMeshShape.h File Reference
#include "btBvhTriangleMeshShape.h"
#include "btMaterial.h"

Go to the source code of this file.

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btMultimaterialTriangleMeshShape (btStridingMeshInterface *meshInterface, bool useQuantizedAabbCompression, bool buildBvh=true)
 
 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 aabb More...
 
virtual ~btMultimaterialTriangleMeshShape ()
 
virtual const char * getName () const
 
const btMaterialgetMaterialProperties (int partID, int triIndex)
 Obtains the material for a specific triangle. More...
 

Variables

btMultimaterialTriangleMeshShape __pad0__
 This file was created by Alex Silverman. More...
 

Function Documentation

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btMultimaterialTriangleMeshShape() [1/2]

btMultimaterialTriangleMeshShape ( btStridingMeshInterface meshInterface,
bool  useQuantizedAabbCompression,
bool  buildBvh = true 
)

◆ btMultimaterialTriangleMeshShape() [2/2]

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 aabb

Definition at line 65 of file btMultimaterialTriangleMeshShape.h.

References m_meshInterface, MULTIMATERIAL_TRIANGLE_MESH_PROXYTYPE, stride, and type.

◆ getMaterialProperties()

const btMaterial * btMultimaterialTriangleMeshShape::getMaterialProperties ( int  partID,
int  triIndex 
)

Obtains the material for a specific triangle.

This file was created by Alex Silverman.

Obtains the material for a specific triangle

Definition at line 23 of file btMultimaterialTriangleMeshShape.cpp.

References btTriangleIndexVertexMaterialArray(), m_meshInterface, and numTriangles().

◆ getName()

virtual const char* getName ( ) const
virtual

Definition at line 109 of file btMultimaterialTriangleMeshShape.h.

◆ ~btMultimaterialTriangleMeshShape()

virtual ~btMultimaterialTriangleMeshShape ( )
virtual

Definition at line 96 of file btMultimaterialTriangleMeshShape.h.

Variable Documentation

◆ __pad0__

This file was created by Alex Silverman.

The BvhTriangleMaterialMeshShape extends the btBvhTriangleMeshShape. Its main contribution is the interface into a material array, which allows per-triangle friction and restitution.

Definition at line 26 of file btMultimaterialTriangleMeshShape.h.