An edge is a topological part of a 3D curve bounded by two vertices.
new Edge(
startVertex,endVertex):Edge
Creates an edge bounded by the provided vertices.
Start vertex of the curve.
End vertex of the curve.
Edge
new Edge(
curve,startVertex,endVertex):Edge
Creates an edge bounded by the provided vertices and represented by the specified curve.
3D curve of the edge.
Start vertex of the curve.
End vertex of the curve.
Edge
Shape.constructor
triangulation:
EdgeTriangulation|null=null
Polygonal representation of the edge.
The default value is null.
get curve():
Curve|null
3D curve of the edge.
The value is null for an edge for which Edge.isDegenerated returns true.
Curve | null
set curve(
curve):void
Sets 3D curve of the edge.
The curve must go from the start vertex to the end vertex in the direction of increasing curve parameter.
The vertices must lie on the curve and within the curve definition range unless the curve is periodic.
If curve is null, removes the 3D curve from the edge.
For degenerated edges (e.g. sphere pole or cone apex) this method should not be called.
Curve | null
Curve of the edge.
void
get endVertex():
Vertex
End vertex of the edge.
The end vertex corresponds to the point on the curve with the greater parameter.
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 startVertex():
Vertex
Start vertex of the edge.
The start vertex corresponds to the point on the curve with the smaller parameter.
get type():
ShapeType
Type of the shape.
isDegenerated():
boolean
Returns whether the edge has no 3D curve.
boolean