Defines a sheet body composed of shells and faces.
new SheetBody(
shape?):SheetBody
Creates a sheet body with an optional initial shape.
Initial shell or face to add.
SheetBody
material:
VisualMaterial|null=null
Visual material of the body.
The default value is null.
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the body.
The default value is null.
string | null
set name(
name):void
Sets the name of the body.
string | null
Body name.
void
get shapes():
ReadonlySet<Shape>
Sheet shapes composing the body.
ReadonlySet<Shape>
append(
shape):void
Appends a shape to the body.
If shape is already present in the body, it is not added again.
Shape to append.
void
Computes a compound polygonal representation of the body shapes.
Default material used when the body does not define its own material.
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation<false>
Computes a compound polygonal representation of the body shapes.
Default material used when the body does not define its own material.
ShapeCompoundTriangulation<false>
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation
Computes a compound polygonal representation of the body shapes.
VisualMaterial | null
Default material used when the body does not define its own material.