コード例 #1
0
 public void RemoveHole(Polygon2D hole)
 {
     m_holes.RemoveAll(h => h.Equals(hole));
 }
コード例 #2
0
 public void AddHole(Polygon2D hole)
 {
     m_holes.Add(hole);
 }
コード例 #3
0
 public Polygon2DWithHoles(Polygon2D a_outside) : this()
 {
     Outside = new Polygon2D(a_outside.Vertices);
 }
コード例 #4
0
 public Polygon2DWithHoles(Polygon2D a_outside, IEnumerable <Polygon2D> a_holes)
 {
     Outside = new Polygon2D(a_outside.Vertices);
     m_holes = a_holes.Select(p => new Polygon2D(p.Vertices)).ToList();
 }
コード例 #5
0
 /// <summary>
 /// Simple Constructor
 /// </summary>
 public MultiPolygon2D(Polygon2D polygon) : this()
 {
     AddPolygon(new Polygon2D(polygon.Vertices));
 }