You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compute the Delaunay triangulation of a cloud of points in an arbitrary dimension dim. The length of vector points must be dim*numpoints. Vector points holds data in "component major order", i.e., components are consequitive within the vector. The returned matrix has shape (dim+1, nsimplices), where nsimplices is the number of
simplices in the computed Delaunay triangulation.
delaunay(points::AbstractMatrix) -> Matrix{Int32}
In this variant, the cloud of points is specified by a matrix with size(matrix) == (dim, numpoints).
delaunay(points::AbstractVector) -> Matrix{Int32}
In this variant, the cloud of points is specified with a vector of dim-element vectors or
tuples. It is also possible to use a vector of other tuple-like types, like SVector from
StaticArrays.jl.
Adjusting Qhull flags
You can override the default set of flags that Qhull uses by passing
an additional flags argument:
The default set of flags is qhull d Qt Qbb Qc Qz for up to 3 dimensions, and qhull d Qt Qbb Qc Qx for higher dimensions. The flags you pass override the default flags, i.e. you have to pass all the flags that Qhull should use.
Examples
using MiniQhull
dim =2
numpoints =4
coordinates = [0,0,0,1,1,0,1,1]
connectivity =delaunay(dim, numpoints, coordinates)
# output3×2 Array{Int32,2}:442311