Blender  V3.3
Typedefs | Functions | Variables
btTriangleIndexVertexMaterialArray.h File Reference
#include "btTriangleIndexVertexArray.h"

Go to the source code of this file.

Typedefs

typedef btAlignedObjectArray< btMaterialPropertiesMaterialArray
 

Functions

 BT_DECLARE_ALIGNED_ALLOCATOR ()
 
 btTriangleIndexVertexMaterialArray ()
 
 btTriangleIndexVertexMaterialArray (int numTriangles, int *triangleIndexBase, int triangleIndexStride, int numVertices, btScalar *vertexBase, int vertexStride, int numMaterials, unsigned char *materialBase, int materialStride, int *triangleMaterialsBase, int materialIndexStride)
 This file was created by Alex Silverman. More...
 
virtual ~btTriangleIndexVertexMaterialArray ()
 
void addMaterialProperties (const btMaterialProperties &mat, PHY_ScalarType triangleType=PHY_INTEGER)
 
virtual void getLockedMaterialBase (unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0)
 
virtual void getLockedReadOnlyMaterialBase (const unsigned char **materialBase, int &numMaterials, PHY_ScalarType &materialType, int &materialStride, const unsigned char **triangleMaterialBase, int &numTriangles, int &triangleMaterialStride, PHY_ScalarType &triangleType, int subpart=0)
 

Variables

 btMaterialProperties
 This file was created by Alex Silverman. More...
 
const unsigned char * m_materialBase
 
int m_materialStride
 
PHY_ScalarType m_materialType
 
int m_numTriangles
 
const unsigned char * m_triangleMaterialsBase
 
int m_triangleMaterialStride
 
PHY_ScalarType m_triangleType
 m_triangleType <========== Automatically set in addMaterialProperties More...
 
btTriangleIndexVertexMaterialArray __pad0__
 

Typedef Documentation

◆ MaterialArray

Definition at line 42 of file btTriangleIndexVertexMaterialArray.h.

Function Documentation

◆ addMaterialProperties()

void addMaterialProperties ( const btMaterialProperties mat,
PHY_ScalarType  triangleType = PHY_INTEGER 
)

◆ BT_DECLARE_ALIGNED_ALLOCATOR()

BT_DECLARE_ALIGNED_ALLOCATOR ( )

◆ btTriangleIndexVertexMaterialArray() [1/2]

btTriangleIndexVertexMaterialArray ( )

Definition at line 59 of file btTriangleIndexVertexMaterialArray.h.

Referenced by getMaterialProperties().

◆ btTriangleIndexVertexMaterialArray() [2/2]

btTriangleIndexVertexMaterialArray::btTriangleIndexVertexMaterialArray ( int  numTriangles,
int *  triangleIndexBase,
int  triangleIndexStride,
int  numVertices,
btScalar vertexBase,
int  vertexStride,
int  numMaterials,
unsigned char *  materialBase,
int  materialStride,
int *  triangleMaterialsBase,
int  materialIndexStride 
)

This file was created by Alex Silverman.

Definition at line 20 of file btTriangleIndexVertexMaterialArray.cpp.

References addMaterialProperties(), btMaterialProperties, numTriangles(), PHY_DOUBLE, PHY_FLOAT, and PHY_INTEGER.

◆ getLockedMaterialBase()

void btTriangleIndexVertexMaterialArray::getLockedMaterialBase ( unsigned char **  materialBase,
int &  numMaterials,
PHY_ScalarType materialType,
int &  materialStride,
unsigned char **  triangleMaterialBase,
int &  numTriangles,
int &  triangleMaterialStride,
PHY_ScalarType triangleType,
int  subpart = 0 
)
virtual

◆ getLockedReadOnlyMaterialBase()

void btTriangleIndexVertexMaterialArray::getLockedReadOnlyMaterialBase ( const unsigned char **  materialBase,
int &  numMaterials,
PHY_ScalarType materialType,
int &  materialStride,
const unsigned char **  triangleMaterialBase,
int &  numTriangles,
int &  triangleMaterialStride,
PHY_ScalarType triangleType,
int  subpart = 0 
)
virtual

◆ ~btTriangleIndexVertexMaterialArray()

virtual ~btTriangleIndexVertexMaterialArray ( )
virtual

Definition at line 68 of file btTriangleIndexVertexMaterialArray.h.

Variable Documentation

◆ __pad0__

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 51 of file btTriangleIndexVertexMaterialArray.h.

◆ btMaterialProperties

btMaterialProperties
Initial value:
{
int m_numMaterials

This file was created by Alex Silverman.

Definition at line 24 of file btTriangleIndexVertexMaterialArray.h.

Referenced by btTriangleIndexVertexMaterialArray(), getLockedMaterialBase(), and getLockedReadOnlyMaterialBase().

◆ m_materialBase

const unsigned char* m_materialBase

Definition at line 28 of file btTriangleIndexVertexMaterialArray.h.

◆ m_materialStride

int m_materialStride

Definition at line 29 of file btTriangleIndexVertexMaterialArray.h.

◆ m_materialType

PHY_ScalarType m_materialType

Definition at line 30 of file btTriangleIndexVertexMaterialArray.h.

◆ m_numTriangles

int m_numTriangles

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

Definition at line 35 of file btTriangleIndexVertexMaterialArray.h.

◆ m_triangleMaterialsBase

const unsigned char* m_triangleMaterialsBase

Definition at line 36 of file btTriangleIndexVertexMaterialArray.h.

◆ m_triangleMaterialStride

int m_triangleMaterialStride

Definition at line 37 of file btTriangleIndexVertexMaterialArray.h.

◆ m_triangleType

PHY_ScalarType m_triangleType

m_triangleType <========== Automatically set in addMaterialProperties

Definition at line 39 of file btTriangleIndexVertexMaterialArray.h.