public static void Triangulate(ITriangulatable t, TriangulationAlgorithm algorithm = DEFAULT_ALGORITHM) { TriangulationContext tcx = CreateContext(algorithm); tcx.PrepareTriangulation(t); Triangulate(tcx); }
public static void Triangulate(PolygonSet ps) { TriangulationContext tcx = CreateContext(_defaultAlgorithm); foreach (Polygon p in ps.Polygons) { tcx.PrepareTriangulation(p); Triangulate(tcx); tcx.Clear(); } }