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): booleansurfaceArea
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): numbertoFaces
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[]