public PolygonSet(Polygon poly) { this._polygons.Add(poly); }
public void Add(Polygon p) { this._polygons.Add(p); }
/// <summary> /// Add a hole to the polygon. /// </summary> /// <param name="poly">A subtraction polygon fully contained inside this polygon.</param> public void AddHole(Polygon poly) { if (this._holes == null) { this._holes = new List<Polygon>(); } this._holes.Add(poly); // XXX: tests could be made here to be sure it is fully inside // addSubtraction( poly.getPoints() ); }