Skip to content
Shapemetry

Model - Solid value

API reference for src/nodeMethods/solidValue 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.

isClosed

function

True when the face set closes a VOLUME — the kernel's own loader is the test (an open sheet is refused as a Shell, not a Solid). False for no faces.

isClosed(input: unknown): boolean

surfaceArea

function

Sum of every face's own area, mm² — per ENTITY, so a bag of bodies is the sum of their surfaces rather than the surface of some sewn union.

surfaceArea(input: unknown): number

toFaces

function

Coerce whatever a solid value/reference resolves to into Face[]: a full entity array (container reference), a single already-unwrapped bare Shell (single-entity reference — see functionRegistry/wiring.ts's coerceArg), or nested arrays of either.

toFaces(input: unknown): ShellEntity[]
Last updated: 📖 1 min readEdit on GitHub