示例#1
1
		public PolygonSet(Polygon poly)
		{
			this._polygons.Add(poly);
		}
示例#2
1
		public void Add(Polygon p)
		{
			this._polygons.Add(p);
		}
示例#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() );
		}