Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #3
0
 public static bool IsCCW(ICoordinateSequence ring)
 {
     return(Orientation.IsCCW(ring));
 }
Beispiel #4
0
 public static bool IsCCW(Coordinate[] ring)
 {
     return(Orientation.IsCCW(ring));
 }