Hide menu
Loading...
Searching...
No Matches
PolyBody

Describes object that contains collection of poly shapes.

Extends

Constructors

new PolyBody()

new PolyBody(shape?): PolyBody

Parameters

shape?

PolyShape

Appended shape.

Returns

PolyBody

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

Returns a set of child poly shapes.

Returns

ReadonlySet<PolyShape>

Methods

append()

append(shape): void

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

Parameters

shape

PolyShape

Appended poly shape.

Returns

void