Skip to content
Shapemetry

Model - Utils

API reference for src/nodeMethods/utils on @huukhanhnguyen/model, reachable from ./compute.

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

clusterFaces

function

Union-find over faces that share a vertex (within tolerance, world units/mm) — groups a flat Face[] into its connected solids. Used by packages/collision (a part-boundary tolerance, deliberately coarser than nodeMethods/solid/mesh.ts's internal connectedFaceGroups, which uses a much tighter 1e-6 mesh-weld tolerance for a different purpose).

clusterFaces(faces: ShellEntity[], tolerance?: number): ShellEntity[][]

entityId

function

entityId(): string
Last updated: 📖 1 min readEdit on GitHub