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

            return(DelaunayHelpers.Kruskal(segments, type));
        }
Exemplo n.º 2
0
 public List <LineSegment> Hull()
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(HullEdges()));
 }
Exemplo n.º 3
0
 public List <LineSegment> DelaunayTriangulation(/*BitmapData keepOutMask = null*/)
 {
     return
         (DelaunayHelpers.DelaunayLinesForEdges(DelaunayHelpers.SelectNonIntersectingEdges(/*keepOutMask,*/ _edges)));
 }
Exemplo n.º 4
0
 public List <LineSegment> VoronoiDiagram()
 {
     return(DelaunayHelpers.VisibleLineSegments(_edges));
 }
Exemplo n.º 5
0
 public List <LineSegment> DelaunayLinesForSite(Point coord)
 {
     return(DelaunayHelpers.DelaunayLinesForEdges(DelaunayHelpers.SelectEdgesForSitePoint(coord, _edges)));
 }
Exemplo n.º 6
0
 public List <LineSegment> VoronoiBoundaryForSite(Point coord)
 {
     return(DelaunayHelpers.VisibleLineSegments(DelaunayHelpers.SelectEdgesForSitePoint(coord, _edges)));
 }