Class Delaunay
Class holding all the delaunay and Voronoi classes in 2 dimensions.
Inheritance
System.Object
Delaunay
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public static class Delaunay : object
Methods
| Improve this Doc View SourceCompute(IEnumerable<DelaunayPoint>, IEnumerable<DelaunayTriangle>)
Compute the delaunay triangulation of a given list of points.
Declaration
public static IEnumerable<DelaunayTriangle> Compute(IEnumerable<DelaunayPoint> points, IEnumerable<DelaunayTriangle> border)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<DelaunayPoint> | points | Points to find delaunay tessellation. |
IEnumerable<DelaunayTriangle> | border | Border to start from. |
Returns
Type | Description |
---|---|
IEnumerable<DelaunayTriangle> | List of DelaunayTriangle. |
Voronoi(IEnumerable<DelaunayTriangle>)
Computes the Voronoi diagram of a given Delaunay triangulation as a list of DelaunayTriangle instances.
Declaration
public static IEnumerable<Line2d> Voronoi(IEnumerable<DelaunayTriangle> triangulation)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<DelaunayTriangle> | triangulation | Delaunay triangulation. |
Returns
Type | Description |
---|---|
IEnumerable<Line2d> | Collection of lines representing the Voronoi cells. |