Hide menu
Loading...
Searching...
No Matches
SolidBody

Describes object that contains solid.

Extends

Constructors

Constructor

new SolidBody(solid?): SolidBody

Parameters

solid?

Solid

Appended solid.

Returns

SolidBody

Overrides

Body.constructor

Properties

material

material: VisualMaterial | null = null

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

Inherited from

Body.material


solid

solid: Solid | null = null

Child solid or null (by default).

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Body.id


name

Get Signature

get name(): string | null

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

Returns

string | null

Set Signature

set name(name): void

Sets name of the body.

Parameters

name

Name of the body.

string | null

Returns

void

Inherited from

Body.name

Methods

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

VisualMaterial | null

Returns

ShapeCompoundTriangulation<true>