![]() |
VOOZH | about |
The Delaunay.hull property returns an Int32Array of point indices that form the convex hull in the counterclockwise order. If the points are collinear, then it returns them ordered.
delaunay.hullIt takes nothing as the parameter.
This property returns an array.
Example 1: The below code example shows the use of the d3.delaunay.hull property.
Output:
👁 Screenshot-2024-03-03-174936-(1)
Example 2: The below code uses the d3.Delaunay.hull property to render the Voronoi diagram and highlight the edges.
Output: