![]() |
VOOZH | about |
The Delaunay.halfedges property returns the half-edge indices as an Int32Array [j0, j1, …]. For every index value between 0 and the length of the half-edges array (exclusive), there is a connection from a vertex of a triangle to another vertex.
delaunay.halfedgesIt takes nothing as the parameter.
This property returns an array pointing to the indices of the half-edges.
Example 1: The below code example shows the use of the d3.delaunay.halfedges property.
Output:
Example 2: The below code uses the d3.Delaunay.halfedges property to render the Voronoi diagram and highlight the edges.
Output: