/// <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); } }
public static TriangulationPoint ToTriangulationPoint(PolygonPoint p) { return((TriangulationPoint)p); }
public void Add(PolygonPoint p) { Add(p, -1, true); }
public static Point2D ToBasePoint(PolygonPoint p) { return((Point2D)p); }