five-on-it / apps/tools/src/block-library / applyTriangles
Function: applyTriangles()
applyTriangles(
mesh,positions,indices):void
Defined in: apps/tools/src/block-library.ts:182
Gives a source mesh its triangles (in the editor's frame) with the normals Babylon computes for them; the geometry is named <mesh id>-geometry.
Parameters
mesh
Mesh
positions
number[]
indices
number[]
Returns
void