Skip to content

A thin wrapper around VoronatorSharp for computing voronoi diagrams in Hypar.Elements

License

Notifications You must be signed in to change notification settings

hypar-io/Elements.Triangulation

Repository files navigation

Elements.Triangulation

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.

Method Signature

public static List<Profile> ComputeVoronoiPolygons(IList<Vector3> points, Profile? trimBoundary = null)

Parameters

  • points: List of Vector3 points to be triangulated.
  • trimBoundary: Optional Profile object to trim the Voronoi polygons.

Returns

  • List<Profile>: A list of Profile objects representing Voronoi polygons.

Building the project

This project assumes you have cloned voronator-sharp and put it adjacent to this project. After that, dotnet build should suffice.

About

A thin wrapper around VoronatorSharp for computing voronoi diagrams in Hypar.Elements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages