Delaunay.Edge.GetSite C# (CSharp) Method

GetSite() private method

private GetSite ( LR leftRight ) : Site
leftRight LR
return Site
        internal Site GetSite(LR leftRight)
        {
            return _sites[leftRight] as Site;
        }

Usage Example

コード例 #1
0
ファイル: Voronoi.cs プロジェクト: VB6Hobbyst7/Delaunay-2
        public List <PointF> HullPointFsInOrder()
        {
            List <Edge> hullEdges = HullEdges();

            List <PointF> PointFs = new List <PointF>();

            if (hullEdges.Count == 0)
            {
                return(PointFs);
            }

            EdgeReorderer reorderer = new EdgeReorderer(hullEdges, typeof(Site));

            hullEdges = reorderer.Edges;
            List <LR> orientations = reorderer.EdgeOrientations;

            reorderer.Dispose();

            LR orientation;

            int n = hullEdges.Count;

            for (int i = 0; i < n; ++i)
            {
                Edge edge = hullEdges[i];
                orientation = orientations[i];
                PointFs.Add(edge.GetSite(orientation).Coord());
            }
            return(PointFs);
        }
All Usage Examples Of Delaunay.Edge::GetSite