Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
 public static TriangulationPoint ToTriangulationPoint(PolygonPoint p)
 {
     return((TriangulationPoint)p);
 }
Ejemplo n.º 3
0
 public void Add(PolygonPoint p)
 {
     Add(p, -1, true);
 }
Ejemplo n.º 4
0
 public static Point2D ToBasePoint(PolygonPoint p)
 {
     return((Point2D)p);
 }