Whether to compute a furthest-site Delaunay triangulation.
Default: False
Added in version 0.12.0.
incrementalbool, optional
Allow adding new points incrementally. This takes up some additional
resources.
qhull_optionsstr, optional
Additional options to pass to Qhull. See Qhull manual for
details. Option "Qt" is always enabled.
Default:"Qbb Qc Qz Qx Q12" for ndim > 4 and "Qbb Qc Qz Q12" otherwise.
Incremental mode omits "Qz".
Added in version 0.12.0.
Attributes:
pointsndarray of double, shape (npoints, ndim)
Coordinates of input points.
simplicesndarray of ints, shape (nsimplex, ndim+1)
Indices of the points forming the simplices in the triangulation.
For 2-D, the points are oriented counterclockwise.
neighborsndarray of ints, shape (nsimplex, ndim+1)
Indices of neighbor simplices for each simplex.
The kth neighbor is opposite to the kth vertex.
For simplices at the boundary, -1 denotes no neighbor.
equationsndarray of double, shape (nsimplex, ndim+2)
[normal, offset] forming the hyperplane equation of the facet
on the paraboloid
(see Qhull documentation for more).
paraboloid_scale, paraboloid_shiftfloat
Scale and shift for the extra paraboloid dimension
(see Qhull documentation for more).
transformndarray of double, shape (nsimplex, ndim+1, ndim)
Affine transform from x to the barycentric coordinates c.
Vertices of facets forming the convex hull of the point set.
coplanarndarray of int, shape (ncoplanar, 3)
Indices of coplanar points and the corresponding indices of
the nearest facet and the nearest vertex. Coplanar
points are input points which were not included in the
triangulation due to numerical precision issues.
If option "Qc" is not specified, this list is not computed.
Compute hyperplane distances to the point xi from all simplices.
Raises:
QhullError
Raised when Qhull encounters an error condition, such as
geometrical degeneracy when options to resolve are not enabled.
ValueError
Raised if an incompatible array is given as input.
Notes
The tessellation is computed using the Qhull library
Qhull library.
Note
Unless you pass in the Qhull option "QJ", Qhull does not
guarantee that each input point appears as a vertex in the
Delaunay triangulation. Omitted points are listed in the
coplanar attribute.
The returned integers in the array are the indices of the simplex the
corresponding point is in. If -1 is returned, the point is in no simplex.
Be aware that the shortcut in the following example only works correctly
for valid points as invalid points result in -1 which is itself a valid
index for the last simplex in the list.
The coordinates for the first point are all positive, meaning it
is indeed inside the triangle. The third point is on an edge,
hence its null third coordinate.