Exemplo n.º 1
0
        private static void build(
            out IList <Polygon> result,
            out IList <Segment> dangles,
            out IList <Segment> cuts)
        {
            Polyline polyline = new Polyline();

            polyline.Paths = _sourcePaths;

            PlanarGraph graph = PlanarGraph.Build(polyline, null);

            graph.SetElementsEnabledState(true);

            markDangles(graph);
            getCutsAndDangles(graph, out dangles);

            result = graph.BuildFaces(out cuts);
        }