Пример #1
0
        /// <summary>
        /// Removes a point from the polygon.  Note this can be a somewhat expensive operation
        /// as it must recalculate the bounding area from scratch.
        /// </summary>
        /// <param name="p"></param>
        public void RemovePoint(PolygonPoint p)
        {
            PolygonPoint next, prev;

            next          = p.Next;
            prev          = p.Previous;
            prev.Next     = next;
            next.Previous = prev;
            mPoints.Remove(p);

            mBoundingBox.Clear();
            foreach (PolygonPoint tmp in mPoints)
            {
                mBoundingBox.AddPoint(tmp);
            }
        }
Пример #2
0
 public static TriangulationPoint ToTriangulationPoint(PolygonPoint p)
 {
     return((TriangulationPoint)p);
 }
Пример #3
0
 public void Add(PolygonPoint p)
 {
     Add(p, -1, true);
 }
Пример #4
0
 public static Point2D ToBasePoint(PolygonPoint p)
 {
     return((Point2D)p);
 }