A solid is intended to represent a finite volume bounded by one or more shells.
new Solid(
shell?):Solid
Creates a solid optionally initialized with a shell.
Optional initial shell.
Solid
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the shape.
The default value is null.
string | null
set name(
name):void
Sets the name of the shape.
string | null
Shape name.
void
get type():
ShapeType
Type of the shape.
append(
shell):boolean
Appends a shell to the solid.
Returns true if shell was added, or false if it is already present in the solid.
Shell to append.
boolean
append(
shells):boolean
Appends shells to the solid.
Returns true if all provided shells were added, or false if one or more shells are already present in the solid. Already present shells are skipped.
Shell[]
Shells to append.
boolean
Computes a compound polygonal representation of the solid shells.
Default material assigned to faces without their own material.
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation<false>
Computes a compound polygonal representation of the solid shells.
Default material assigned to faces without their own material.
ShapeCompoundTriangulation<false>
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation
Computes a compound polygonal representation of the solid shells.
VisualMaterial | null
Default material assigned to faces without their own material.