Class: btTriangleMesh
Ammo.btTriangleMesh
Hierarchy
↳
btTriangleMesh
Constructors
Methods
Constructors
constructor
• new btTriangleMesh(use32bitIndices?
, use4componentVertices?
): btTriangleMesh
Parameters
Name | Type |
---|---|
use32bitIndices? | boolean |
use4componentVertices? | boolean |
Returns
Overrides
btStridingMeshInterface.constructor
Defined in
Methods
setScaling
▸ setScaling(scaling
): void
Parameters
Name | Type |
---|---|
scaling | btVector3 |
Returns
void
Inherited from
btStridingMeshInterface.setScaling
Defined in
addTriangle
▸ addTriangle(vertex0
, vertex1
, vertex2
, removeDuplicateVertices?
): void
Parameters
Name | Type |
---|---|
vertex0 | btVector3 |
vertex1 | btVector3 |
vertex2 | btVector3 |
removeDuplicateVertices? | boolean |
Returns
void
Defined in
findOrAddVertex
▸ findOrAddVertex(vertex
, removeDuplicateVertices
): number
Parameters
Name | Type |
---|---|
vertex | btVector3 |
removeDuplicateVertices | boolean |
Returns
number
Defined in
addIndex
▸ addIndex(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Defined in
getIndexedMeshArray
▸ getIndexedMeshArray(): btIndexedMeshArray