Hide menu
Loading...
Searching...
No Matches
Edge

Describes a part of a 3D curve limited by vertices.

Extends

Constructors

new Edge()

new Edge(startVertex, endVertex, curve?): Edge

Parameters

startVertex

Vertex

Start vertex of the curve.

endVertex

Vertex

End vertex of the curve.

curve?

3D Curve.

null | Curve

Returns

Edge

Overrides

Shape.constructor

Properties

triangulation

triangulation: null | EdgeTriangulation = null

Polygonal representation of edge.

Accessors

curve

Get Signature

get curve(): null | Curve

Returns 3D curve of the edge. null if edge is degenerated.

Returns

null | Curve

Set Signature

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.

Parameters

curve

Curve of the edge.

null | Curve

Returns

void


endVertex

Get Signature

get endVertex(): Vertex

Returns an end vertex. End vertex corresponds to a point on a curve with greater parameter.

Returns

Vertex


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


startVertex

Get Signature

get startVertex(): Vertex

Returns a start vertex. Start vertex corresponds to a point on a curve with smaller parameter.

Returns

Vertex


type

Get Signature

get type(): ShapeType

Type of the topological object.

Returns

ShapeType

Inherited from

Shape.type

Methods

isDegenerated()

isDegenerated(): boolean

Returns true if curve is null, false otherwise.

Returns

boolean