Hide menu
Loading...
Searching...
No Matches
Shell

Describes a set of faces.

Extends

Constructors

new Shell()

new Shell(face): Shell

Parameters

face

Face

Face.

Returns

Shell

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(face): boolean

Appends new face to the set.

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

Parameters

face

Face

Appended face.

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>