A wire is intended to represent a connected set of edges.
new Wire(
edge?):Wire
Creates a wire optionally initialized with an edge.
Optional initial edge.
Wire
get id():
bigint
Returns the unique identifier of the object.
bigint
get name():
string|null
Name of the shape.
The default value is null.
string | null
set name(
name):void
Sets the name of the shape.
string | null
Shape name.
void
get type():
ShapeType
Type of the shape.
append(
edge):boolean
Appends an edge to the wire.
Returns true if edge was added, or false if it is already present in the wire.
Edge to append.
boolean
append(
edges):boolean
Appends edges to the wire.
Returns true if all provided edges were added, or false if one or more edges are already present in the wire. Already present edges are skipped.
Edge[]
Edges to append.
boolean
Computes a compound polygonal representation of the wire edges.
Default material assigned to edges without their own material.
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation<false>
Computes a compound polygonal representation of the wire edges.
Default material assigned to edges without their own material.
ShapeCompoundTriangulation<false>
computeCompoundTriangulation(
defaultMaterial):ShapeCompoundTriangulation
Computes a compound polygonal representation of the wire edges.
VisualMaterial | null
Default material assigned to edges without their own material.