@huukhanhnguyen/model / nodeMethods/solidValue
nodeMethods/solidValue
centroid()
centroid(
input):Point
Solid centroid, world space — the kernel's center of mass when the set bounds a volume, else the area-weighted FACE centroid (see module doc). [0,0,0] for no faces.
Parameters
input
unknown
Returns
isClosed()
isClosed(
input):boolean
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.
Parameters
input
unknown
Returns
boolean
surfaceArea()
surfaceArea(
input):number
Sum of every body's own area, mm² — per document (one document = one body), so a bag of bodies is the sum of their surfaces rather than a sewn union.
Parameters
input
unknown
Returns
number
toFaces()
toFaces(
input):BrepData[]
Coerce whatever a solid value/reference resolves to into bodies: a full data array (Group reference), a single already-unwrapped bare Shell (one body — see functionRegistry/wiring.ts's coerceArg), or nested arrays of either.
Parameters
input
unknown
Returns
BrepData[]
volume()
volume(
input):number
Enclosed volume, mm³ — exact in the kernel when the set bounds a volume, else the mesh partial sum (see module doc); 0 for no faces.
Parameters
input
unknown
Returns
number