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

Describes object that contains solid.

Extends

Constructors

new SolidBody()

new SolidBody(solid?): SolidBody

Parameters

solid?

Solid

Appended solid.

Returns

SolidBody

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


solid

solid: null | Solid = 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(): 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

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

null | VisualMaterial

Returns

ShapeCompoundTriangulation<true>