Exemplo n.º 1
0
        private void AddHole(Coordinate[] pts)
        {
            bool isPositiveArea = Orientation.IsCCW(pts);

            for (int i = 0; i < pts.Length - 1; i++)
            {
                AddTriangle(_areaBasePt, pts[i], pts[i + 1], isPositiveArea);
            }
            AddLineSegments(pts);
        }
Exemplo n.º 2
0
        private void AddShell(Coordinate[] pts)
        {
            if (pts.Length > 0)
            {
                SetAreaBasePoint(pts[0]);
            }
            bool isPositiveArea = !Orientation.IsCCW(pts);

            for (int i = 0; i < pts.Length - 1; i++)
            {
                AddTriangle(_areaBasePt, pts[i], pts[i + 1], isPositiveArea);
            }
            AddLineSegments(pts);
        }
Exemplo n.º 3
0
 public static bool IsCCW(ICoordinateSequence ring)
 {
     return(Orientation.IsCCW(ring));
 }
Exemplo n.º 4
0
 public static bool IsCCW(Coordinate[] ring)
 {
     return(Orientation.IsCCW(ring));
 }