Exemplo n.º 1
1
		public PolygonSet(Polygon poly)
		{
			this._polygons.Add(poly);
		}
Exemplo n.º 2
1
		public void Add(Polygon p)
		{
			this._polygons.Add(p);
		}
Exemplo n.º 3
1
		/// <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() );
		}