Ejemplo n.º 1
0
        public List <LineSegment> SpanningTree(KruskalType type = KruskalType.MINIMUM /*, BitmapData keepOutMask = null*/)
        {
            List <Edge>        edges    = DelaunayHelpers.SelectNonIntersectingEdges(/*keepOutMask,*/ _edges);
            List <LineSegment> segments = DelaunayHelpers.DelaunayLinesForEdges(edges);

            return(DelaunayHelpers.Kruskal(segments, type));
        }
Ejemplo n.º 2
0
        public List <LineSegment> SpanningTree(KruskalType type = KruskalType.MINIMUM)
        {
            List <Edge>        edges        = DelaunayHelpers.SelectNonIntersectingEdges(_edges);
            List <LineSegment> lineSegments = DelaunayHelpers.DelaunayLinesForEdges(edges);

            return(DelaunayHelpers.Kruskal(lineSegments, type));
        }
Ejemplo n.º 3
0
 public List <LineSegment> Hull()
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(HullEdges()));
 }
Ejemplo n.º 4
0
 public List <LineSegment> DelaunayTriangulation(/*BitmapData keepOutMask = null*/)
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(DelaunayHelpers.SelectNonIntersectingEdges(/*keepOutMask,*/ _edges)));
 }
Ejemplo n.º 5
0
 public List <LineSegment> DelaunayLinesForSite(Vector2 coord)
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(DelaunayHelpers.SelectEdgesForSitePoint(coord, _edges)));
 }
Ejemplo n.º 6
0
 public List <LineSegment> DelaunayTriangulation()
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(DelaunayHelpers.SelectNonIntersectingEdges(_edges)));
 }