Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 848 Bytes

Readme.md

File metadata and controls

22 lines (14 loc) · 848 Bytes

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.