コード例 #1
1
ファイル: PolygonSet.cs プロジェクト: gleblebedev/toe
		public PolygonSet(Polygon poly)
		{
			this._polygons.Add(poly);
		}
コード例 #2
1
ファイル: PolygonSet.cs プロジェクト: gleblebedev/toe
		public void Add(Polygon p)
		{
			this._polygons.Add(p);
		}
コード例 #3
1
ファイル: Polygon.cs プロジェクト: gleblebedev/toe
		/// <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() );
		}