Hide menu
Loading...
Searching...
No Matches
Wire

Describes a set of edges.

Extends

Constructors

new Wire()

new Wire(edge): Wire

Parameters

edge

Edge

Edge.

Returns

Wire

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

Appends new edge to the set.

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

Parameters

edge

Edge

Appended edge.

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>