Spatial tessellation
Partitioning 2D or higher-dimensional point clouds into simplices for geometric analysis.
SciPy · Class
scipy.spatial.Delaunay computes a Delaunay tessellation in N dimensions from point coordinates. It supports furthest-site and incremental construction plus custom Qhull options.
Delaunay constructs an N-dimensional tessellation from an array of point coordinates using Qhull. The resulting object exposes the simplices and related geometry, while optional settings support furthest-site triangulation, incremental point insertion, and custom Qhull behavior.
scipy.spatial.Delaunay(points, furthest_site=False, incremental=False, qhull_options=None)| Name | Type | Description |
|---|---|---|
points | ndarray of floats | Coordinates of points to triangulate; an ndarray of floats with shape (npoints, ndim). |
furthest_site | bool, optional | Whether to compute a furthest-site Delaunay triangulation. |
incremental | bool, optional | Allow adding new points incrementally; this consumes additional resources. |
qhull_options | str, optional | Additional options passed to Qhull. Qt is always enabled. |
A Delaunay tessellation object containing the computed triangulation and its geometric data.
import numpy as np
from scipy.spatial import Delaunay
points = np.array([[0, 0], [0, 1.1], [1, 0], [1, 1]])
tri = Delaunay(points)
print(tri.simplices)Construct a two-dimensional Delaunay triangulation and print the point-index simplices that form it.
Partitioning 2D or higher-dimensional point clouds into simplices for geometric analysis.
Building mesh connectivity from scattered coordinates.
Adding points to an existing triangulation without rebuilding from scratch.
Delaunay is a class that computes a tessellation in N dimensions from point coordinates. Its input is an ndarray shaped (npoints, ndim), and the computation uses Qhull.
Follow-up: How can the triangulation be made incremental? Construct it with incremental=True, accepting the additional resource cost documented for that mode.
Set furthest_site=True to compute a furthest-site Delaunay triangulation instead of the ordinary form. The parameter is optional and defaults to False.
Follow-up: What other construction-time behavior can be customized? qhull_options passes additional options to Qhull, while Qt remains enabled.
qhull_options is a string of extra options passed to Qhull. If it is not supplied, SciPy uses a dimension-dependent default: Qbb Qc Qz Q12 normally, adding Qx when ndim is greater than four.
Follow-up: What changes for incremental construction? The documented default option set omits Qz in incremental mode.
scipy.spatial.ConvexHullscipy.spatial.Voronoiscipy.spatial.KDTreescipy.spatial.cKDTree