Skip to content

Documentation / @ripl/3d / triangulateFacesIndices

Function: triangulateFacesIndices() ​

triangulateFacesIndices(faces): Uint32Array

Defined in: 3d/src/core/shape.ts:1068

Fan-triangulates faces into an index buffer addressing triangulateFacesFlat's vertices.

Parameters ​

ParameterTypeDescription
facesFace3D[]The mesh's faces.

Returns ​

Uint32Array

Triangle indices.