This library is currently a very thin wrapper around the VoronatorSharp project.
It exposes a single method, Elements.Triangulation.Triangulation.ComputeVoronoiPolygons
, which computes the voronoi diagram of the provided points.
public static List<Profile> ComputeVoronoiPolygons(IList<Vector3> points, Profile? trimBoundary = null)
points
: List ofVector3
points to be triangulated.trimBoundary
: OptionalProfile
object to trim the Voronoi polygons.
List<Profile>
: A list ofProfile
objects representing Voronoi polygons.
This project assumes you have cloned voronator-sharp
and put it adjacent to this project. After that, dotnet build
should suffice.