JuliaGeometry / DelaunayTriangulation.jl

Delaunay triangulations and Voronoi tessellations in two dimensions.
https://juliageometry.github.io/DelaunayTriangulation.jl/
MIT License
62 stars 5 forks source link

Add a `reconstruct` function for building triangulations from `points` and `triangles` #143

Closed DanielVandH closed 1 month ago

DanielVandH commented 1 month ago

e.g. reconstruct(points, triangles, boundary_nodes) should serve the same purpose as Triangulation(points, triangles, boundary_nodes) currently does.

For reconstruct(points, triangles), this should build an unconstrained triangulation with boundary_nodes=get_vertices(get_convex_hull(points)), assuming all points are in the triangulation.

Some useful helper functions needed to get this right are:

Could be nice to have the option to pass segments too