Class: EdgeRef

EdgeRef()

Reference to an edge entity. Do not construct manually, use backend methods.

Constructor

new EdgeRef()

Source:

Methods

(async) create()

Called when the node is created.
Source:

(async) getLine() → {Line3}

Get the spatial line between the centers of each node on this edge.
Source:
Returns:
Type
Line3

(async, generator) getNodes() → {AsyncIterable.<NodeRef>}

Get the (two) nodes connected to this edge.
Source:
Returns:
Type
AsyncIterable.<NodeRef>

(async) getOtherNode(startId) → {NodeRef}

Get the other node connected to this edge, given one of the connected nodes.
Parameters:
Name Type Description
startId number the known node ID.
Source:
Returns:
the other node connected to this edge.
Type
NodeRef