diagram.links()

diagram.links()

Returns the Delaunay triangulation of the specified data array as an array of links, one for each edge in the mesh. Each link has the following attributes:

  • source - the source node, an element in data.
  • target - the target node, an element in data.

Since the triangulation is computed as the dual of the Voronoi diagram, and the Voronoi diagram is clipped by the extent, a subset of the Delaunay links is returned.

doc_D3_Js
2016-11-24 10:27:38
Comments
Leave a Comment

Please login to continue.