API

Function getMeshTriangles

  • Return caller-owned copies of a mesh's indexed triangle positions.

    Unlike getMeshGeometry, this does not require normals or other shading attributes. Returns null when positions or indices are not retained on the CPU.

    Parameters

    Returns { indices: Uint32Array; positions: Float32Array } | null