Module: node

Methods

(static) addIsoNode(topo, coordinate) → {module:node~Node}

Adds an isolated node to a face in a topology and returns the new node. If face is null, the node is still created.

Parameters:
Name Type Description
topo module:topo~Topo
coordinate module:coordinate~Coordinate
Source:
Returns:
Type
module:node~Node

(static) getNodeByPoint(topo, coordinate) → {module:node~Node}

Find the node at a point location.

Parameters:
Name Type Description
topo module:topo~Topo
coordinate module:coordinate~Coordinate
Source:
Returns:
Type
module:node~Node

Type Definitions

Node

Node definition

Type:
  • Object
Properties:
Name Type Description
id number

Node ID

face module:face~Face

Containing face

coordinate module:coordinate~Coordinate

Coordinate

minX number

Minimum X of bounds

maxY number

Maximum Y of bounds

minX number

Minimum X of bounds

maxY number

Maximum Y of bounds

Source: