VOOZH about

URL: https://www.geeksforgeeks.org/javascript/d3-js-delaunay-hull-property/

⇱ D3.js Delaunay.hull Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js Delaunay.hull Property

Last Updated : 28 Apr, 2025

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.

Syntax:

delaunay.hull

Parameters:

It takes nothing as the parameter.

Return Value:

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.

Comment
Article Tags: