Hide menu
Loading...
Searching...
No Matches
Solid

Describes a part of space limited by shells.

Extends

Constructors

new Solid()

new Solid(shell): Solid

Parameters

shell

Shell

Shell.

Returns

Solid

Overrides

Shape.constructor

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Shape.id


name

Get Signature

get name(): null | string

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

Returns

null | string

Set Signature

set name(name): void

Sets name of the Shape.

Parameters

name

Name of the Shape.

null | string

Returns

void

Inherited from

Shape.name


type

Get Signature

get type(): ShapeType

Type of the topological object.

Returns

ShapeType

Inherited from

Shape.type

Methods

append()

append(shell): boolean

Appends new shell to the set.

Returns true if shell was added, false otherwise (i.e. if shell already presented in this solid).

Parameters

shell

Shell

Appended shell.

Returns

boolean


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>