Declaration
public static VoronoiDiagram GenerateVoronoiDiagram(
PointD[] sites,
double width,
double height,
VoronoiDiagramFlags flags = 0x0
)Summary
Generates a Voronoi diagram from a set of input points.
Parameters
| PointD[] | sites |
Input points (sites) to generate diagram from. |
| double | width |
Width of the viewport. The origin of the viewport is assumed to be at (0, 0). |
| double | height |
Height of the viewport. The origin of the viewport is assumed to be at (0, 0). |
| VoronoiDiagramFlags | flags |
Set of VoronoiDiagramFlags values that specifies additional options. |
Returns
A list of line segments describing the Voronoi diagram.