This project is read-only.

Define holes by winding direction?

Nov 6, 2016 at 3:49 PM
Edited Nov 6, 2016 at 3:53 PM
For example,
The picture shows the winding order of the vertexes.
An anticlockwise winding path means the region in it is a hole.

Now I want to get a mesh like below.

How to achieve that with Triangle.NET? Maybe, for every hole I can generate a point inside it and use Polygon.Add(Contour contour, Point hole) to generate the polygon. But I think there should some better way to do the job.
Nov 6, 2016 at 3:59 PM
Oh.. I just found Polygon.Add(Contour contour, bool hole = false). This method should work. I'm trying that in my project.