Hide menu
Loading...
Searching...
No Matches
SheetBody

Describes object that contains collection of shells and faces.

Extends

Constructors

new SheetBody()

new SheetBody(shape?): SheetBody

Parameters

shape?

Appended shape.

Face | Shell

Returns

SheetBody

Overrides

Body.constructor

Properties

material

material: null | VisualMaterial = null

The model element material. null if the element has no material (by default).

Inherited from

Body.material

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Body.id


name

Get Signature

get name(): null | string

Returns name of the body. null if the element has no name (by default).

Returns

null | string

Set Signature

set name(name): void

Sets name of the body.

Parameters

name

Name of the body.

null | string

Returns

void

Inherited from

Body.name


shapes

Get Signature

get shapes(): ReadonlySet<Face | Shell>

Returns a set of child shapes.

Returns

ReadonlySet<Face | Shell>

Methods

append()

append(shape): void

Appends new shape to the set. If the passed shape already presents as a body, it won't be added.

Parameters

shape

Appended shape.

Face | Shell

Returns

void


computeCompoundTriangulation()

Call Signature

computeCompoundTriangulation(defaultMaterial): ShapeCompoundTriangulation<false>

Computes compound polygonal representation of child shapes.

Parameters

defaultMaterial

VisualMaterial

Returns

ShapeCompoundTriangulation<false>

Call Signature

computeCompoundTriangulation(defaultMaterial): ShapeCompoundTriangulation<true>

Computes compound polygonal representation of child shapes.

Parameters

defaultMaterial

null | VisualMaterial

Returns

ShapeCompoundTriangulation<true>