Hide menu
Loading...
Searching...
No Matches
MeshBody

Describes object that contains collection of mesh shapes.

Extends

Constructors

new MeshBody()

new MeshBody(shape?): MeshBody

Parameters

shape?

MeshShape

Appended shape.

Returns

MeshBody

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<MeshShape>

Returns a set of child Mesh shapes.

Returns

ReadonlySet<MeshShape>

Methods

append()

append(shape): void

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

Parameters

shape

MeshShape

Appended Mesh shape.

Returns

void