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

Defines a solid body composed of a Solid.

See also Solid.

Extends

Constructors

Constructor

new SolidBody(solid?): SolidBody

Creates a solid body with an optional solid.

Parameters

solid?

Solid

Solid assigned to the body.

Returns

SolidBody

Overrides

Body.constructor

Properties

material

material: VisualMaterial | null = null

Visual material of the body.

The default value is null.

Inherited from

Body.material


solid

solid: Solid | null = null

Solid composing the body.

The default value is null.

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Body.id


name

Get Signature

get name(): string | null

Name of the body.

The default value is null.

Returns

string | null

Set Signature

set name(name): void

Sets the name of the body.

Parameters

name

string | null

Body name.

Returns

void

Inherited from

Body.name

Methods

computeCompoundTriangulation()

Computes a compound polygonal representation of the body.

Param

Default material used when the body does not define its own material.

Call Signature

computeCompoundTriangulation(defaultMaterial): ShapeCompoundTriangulation<false>

Computes a compound polygonal representation of the body.

Parameters

defaultMaterial

VisualMaterial

Default material used when the body does not define its own material.

Returns

ShapeCompoundTriangulation<false>

Call Signature

computeCompoundTriangulation(defaultMaterial): ShapeCompoundTriangulation

Computes a compound polygonal representation of the body.

Parameters

defaultMaterial

VisualMaterial | null

Default material used when the body does not define its own material.

Returns

ShapeCompoundTriangulation