A shell is intended to represent a connected set of faces.
new Shell(
face?):Shell
Creates a shell optionally initialized with a face.
Optional initial face.
Shell
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(
face):boolean
Appends a face to the shell.
Returns true if face was added, or false if it is already present in the shell.
Face to append.
boolean
append(
faces):boolean
Appends faces to the shell.
Returns true if all provided faces were added, or false if one or more faces are already present in the shell. Already present faces are skipped.
Face[]
Faces to append.
boolean
Computes a compound polygonal representation of the shell faces.
Default material assigned to faces without their own material.
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation<false>
Computes a compound polygonal representation of the shell faces.
Default material assigned to faces without their own material.
ShapeCompoundTriangulation<false>
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation
Computes a compound polygonal representation of the shell faces.
VisualMaterial | null
Default material assigned to faces without their own material.