Hide menu
Loading...
Searching...
No Matches
Shape

Base class for topological shapes.

Topological shapes define boundaries of geometric entities in B-Rep and relationships between child subshapes.

Extends

Extended by

Constructors

Constructor

new Shape(internalType?): Shape

Creates a shape of the specified type.

Parameters

internalType?

ShapeType = ShapeType.UNDEFINED

Type of the shape.

Returns

Shape

Overrides

BaseObject.constructor

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id


name

Get Signature

get name(): string | null

Name of the shape.

The default value is null.

Returns

string | null

Set Signature

set name(name): void

Sets the name of the shape.

Parameters

name

string | null

Shape name.

Returns

void


type

Get Signature

get type(): ShapeType

Type of the shape.

Returns

ShapeType