Blender V2.61 - r43446
|
#include "btTriangleIndexVertexArray.h"
Go to the source code of this file.
Typedefs | |
typedef btAlignedObjectArray < btMaterialProperties > | MaterialArray |
Functions | |
ATTRIBUTE_ALIGNED16 (struct) btMaterialProperties | |
This file was created by Alex Silverman. | |
ATTRIBUTE_ALIGNED16 (class) btTriangleIndexVertexMaterialArray |
typedef btAlignedObjectArray<btMaterialProperties> MaterialArray |
Definition at line 40 of file btTriangleIndexVertexMaterialArray.h.
ATTRIBUTE_ALIGNED16 | ( | struct | ) |
This file was created by Alex Silverman.
m_materialBase ==========> 2 btScalar values make up one material, friction then restitution
m_numTriangles <=========== This exists in the btIndexedMesh object for the same subpart, but since we're padding the structure, it can be reproduced at no real cost m_triangleMaterials =====> 1 integer value makes up one entry eg: m_triangleMaterials[1] = 5; // This will set triangle 2 to use material 5
m_triangleType <========== Automatically set in addMaterialProperties
Definition at line 24 of file btTriangleIndexVertexMaterialArray.h.
ATTRIBUTE_ALIGNED16 | ( | class | ) |
Teh btTriangleIndexVertexMaterialArray is built on TriangleIndexVertexArray The addition of a material array allows for the utilization of the partID and triangleIndex that are returned in the ContactAddedCallback. As with TriangleIndexVertexArray, no duplicate is made of the material data, so it is the users responsibility to maintain the array during the lifetime of the TriangleIndexVertexMaterialArray.
Definition at line 50 of file btTriangleIndexVertexMaterialArray.h.
References BT_DECLARE_ALIGNED_ALLOCATOR, PHY_INTEGER, btAlignedObjectArray< T >::push_back(), and btAlignedObjectArray< T >::size().