Hello!
How can I output/write/access the Voronoi polygons? This is what i have so far:
Mesh mesh = new Mesh();
var geometry = TriangleNet.IO.FileReader.ReadNodeFile(filename);
mesh.Behavior.MaxAngle = 95;
mesh.Behavior.MinAngle = 35;
mesh.Behavior.ConformingDelaunay = true;
mesh.Behavior.Convex = true;
mesh.Behavior.Quality = true;
mesh.Behavior.Poly = true;
mesh.Triangulate(geometry);
but i am not sure how to use:
TriangleNet.Tools.Voronoi voronoi = new TriangleNet.Tools.Voronoi(mesh);
I also know how to WriteVoronoi to a file with
TriangleNet.IO.FileWriter.WriteVoronoi(mesh, workdir + "voronoi.out");
However reading this text file back into my program and constructing the actual polygons is a bit tricky. I really like Triangle.NET, I just do not know (how to use it) how to get the Voronoi Polygons. What i am looking for is a string that looks something
like that so i can feed it to SQL server.
POLYGON(120.0 30.0, 121.0 30.0,121.0 31.0, 120.0 31.0, 120.0 30.0)
The Voronoi Polygons are based on the behavior which i set for the triangulation, right?
Thanks and keep up the good work
Michael
