Пример #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 = p.Next;
            PolygonPoint prev = p.Previous;

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

            BoundingBox = new Rect2D();
            foreach (var point2D in MPoints)
            {
                BoundingBox = BoundingBox.AddPoint(point2D);
            }
        }
Пример #2
0
 public bool Remove(TriangulationPoint p)
 {
     return(MPoints.Remove(p));
 }
Пример #3
0
 public override bool Remove(Point2D p)
 {
     return(MPoints.Remove(p));
 }