Describes a part of a 3D curve limited by vertices.
new Edge(
startVertex
,endVertex
,curve
?):Edge
Start vertex of the curve.
End vertex of the curve.
3D Curve.
null
| Curve
triangulation:
null
|EdgeTriangulation
=null
Polygonal representation of edge.
get curve():
null
|Curve
Returns 3D curve of the edge. null
if edge is degenerated.
null
| Curve
set curve(
curve
):void
Sets 3D curve of the edge.
The curve must go from the start vertex to the end vertex (specified in the constructor) in the direction of increasing curve's parameter.
The vertices must lie on the curve and within curve's definition range unless it is periodic.
If curve
is null
then removes 3D curve from the edge's curve representations. For degenerated edges (e.g. sphere pole or cone apex) this method should not be called.
Curve of the edge.
null
| Curve
void
get endVertex():
Vertex
Returns an end vertex. End vertex corresponds to a point on a curve with greater parameter.
get id():
bigint
Returns object id.
bigint
get name():
null
|string
Returns name of the Shape. null
if the element has no name (by default).
null
| string
set name(
name
):void
Sets name of the Shape.
Name of the Shape.
null
| string
void
get startVertex():
Vertex
Returns a start vertex. Start vertex corresponds to a point on a curve with smaller parameter.
get type():
ShapeType
Type of the topological object.
isDegenerated():
boolean
Returns true
if curve is null
, false
otherwise.
boolean