Convex Hull
DelaunayTriangulation.convex_hull
— Functionconvex_hull(points; IntegerType::Type{I}=Int) where {I} -> ConvexHull
Computes the convex hull of points
. The monotone chain algorithm is used.
Arguments
points
: The set of points.
Output
ch
: TheConvexHull
.
DelaunayTriangulation.convex_hull!
— Functionconvex_hull!(tri::Triangulation; reconstruct=has_boundary_nodes(tri))
Updates the convex_hull
field of tri
to match the current triangulation.
Arguments
tri::Triangulation
: TheTriangulation
.
Keyword Arguments
reconstruct=has_boundary_nodes(tri)
: Iftrue
, then the convex hull is reconstructed from scratch, usingconvex_hull
on the points. Otherwise, computes the convex hull using the ghost triangles oftri
. If there are no ghost triangles butreconstruct=true
, then the convex hull is reconstructed from scratch.
convex_hull!(ch::ConvexHull{P,I}) where {P,I}
Using the points in ch
, computes the convex hull in-place.
See also convex_hull
.