Solid._expandTriIDsFromMesh()

July 1, 2026 ยท View on GitHub

Static helper that expands a Manifold mesh's faceID data into a plain JavaScript array.

Usage

const ids = Solid._expandTriIDsFromMesh(mesh);

Signature

Solid._expandTriIDsFromMesh(mesh)

Parameters

  • mesh (ManifoldMesh) - Mesh snapshot with optional faceID data.

Returns

number[] - Expanded face IDs, or zeros when the mesh has no face ID data.

This is used when reconstructing Solid instances from Manifold output.