Beispiel #1
0
        public static void Triangulate(ITriangulatable t, TriangulationAlgorithm algorithm = DEFAULT_ALGORITHM)
        {
            TriangulationContext tcx = CreateContext(algorithm);

            tcx.PrepareTriangulation(t);
            Triangulate(tcx);
        }
Beispiel #2
0
        public static void Triangulate(PolygonSet ps)
        {
            TriangulationContext tcx = CreateContext(_defaultAlgorithm);

            foreach (Polygon p in ps.Polygons)
            {
                tcx.PrepareTriangulation(p);
                Triangulate(tcx);
                tcx.Clear();
            }
        }