deldir(x::Vector, y::Vector; ...)
Compute the Delaunay triangulation and Voronoi tesselation of the 2D points with x-coordinates
x and y-coordinates
Optional arguments are
rw: Boundary rectangle specified as a vector with
[xmin, xmax, ymin, ymax]. By default,
rwis the unit rectangle.
epsilon: A value of epsilon used in testing whether a quantity is zeros, mainly in the context of whether points are collinear.
If anomalous errors arise, it is possible that these may averted by adjusting the value of
epsilon upward or downward. By default,
epsilon = 1e-9.
The output are three
y2entires are the coordinates of the points joined by an edge of a Delaunay triangle.
ind2entries are the indices of the two points which are joined.
y2entires are the coordinates of the endpoints of one the edges of a Voronoi cell.
ind2entries are the indices of the two points, in the set being triangulated, which are separated by that edge
bp1entry indicates whether the first endpoint of the corresponding edge of a Voronoi cell is a boundary point (a point on the boundary of the rectangular window).
Likewise for the
bp2 entry and the second endpoint of the edge.
thirdv2columns are the indices of the respective third vertices of the Delaunay triangle whose circumcentres constitute the corresponding endpoints of the edge under consideration.
yentries of each row are the coordinates of the points in the set being triangulated.
ntrientry are the number of Delaunay triangles emanating from the point.
1/3of the total area of all the Delaunay triangles emanating from the point.
n_tsideentry is the number of sides — within the rectangular window — of the Voronoi cell surrounding the point.
nbptentry is the number of points in which the Voronoi cell intersects the boundary of the rectangular window.
vor_areaentry is the area of the Voronoi cell surrounding the point.
Wrapper for the Fortran code that returns the output undigested.
edges(D) -> Vector, Vector
Collect the edges of a dataframe in vectors that are ready to be plotted.
Remove duplicate tuples
(x[i],y[i]) from the vectors
voronoiarea(x::Vector, y::Vector, rw) -> Vector
Compute the area of each Voronoi cell of the generators
(x[i], y[i]) in the vectors
rw is the boundary window.