Skip to content

Class: btTriangleMesh

Ammo.btTriangleMesh

Hierarchy

Constructors

Methods

Constructors

constructor

new btTriangleMesh(use32bitIndices?, use4componentVertices?): btTriangleMesh

Parameters

NameType
use32bitIndices?boolean
use4componentVertices?boolean

Returns

btTriangleMesh

Overrides

btStridingMeshInterface.constructor

Defined in

packages/ammo/ammo.d.ts:401

Methods

setScaling

setScaling(scaling): void

Parameters

NameType
scalingbtVector3

Returns

void

Inherited from

btStridingMeshInterface.setScaling

Defined in

packages/ammo/ammo.d.ts:390


addTriangle

addTriangle(vertex0, vertex1, vertex2, removeDuplicateVertices?): void

Parameters

NameType
vertex0btVector3
vertex1btVector3
vertex2btVector3
removeDuplicateVertices?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:402


findOrAddVertex

findOrAddVertex(vertex, removeDuplicateVertices): number

Parameters

NameType
vertexbtVector3
removeDuplicateVerticesboolean

Returns

number

Defined in

packages/ammo/ammo.d.ts:403


addIndex

addIndex(index): void

Parameters

NameType
indexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:404


getIndexedMeshArray

getIndexedMeshArray(): btIndexedMeshArray

Returns

btIndexedMeshArray

Defined in

packages/ammo/ammo.d.ts:405

Released under the MIT License