Пример #1
0
 public Polygon2DAdorner(Polygon2D p)
 {
     polygon = p;
     triangles = new Triangle2DCollection(1);
     lineSegments = new LineSegment2DCollection(1);
     internalSegments = new Vector2DCollection(1);
     ghostTriangles = new GhostTriangle2DCollection(1);
 }
Пример #2
0
        public void Union(Triangle2DCollection triangle2DCollection)
        {
            Capacity += triangle2DCollection.Capacity;

            Triangle2D[] triangles = new Triangle2D[Capacity];

            this.Triangles.CopyTo(triangles, 0);
            triangle2DCollection.Triangles.CopyTo(triangles, this.Count);
            this.Triangles = triangles;
            CurrentCount  += triangle2DCollection.Count;
        }
        public void Union(Triangle2DCollection triangle2DCollection)
        {
            Capacity += triangle2DCollection.Capacity;

            Triangle2D[] triangles = new Triangle2D[Capacity];

            this.Triangles.CopyTo(triangles, 0);
            triangle2DCollection.Triangles.CopyTo(triangles, this.Count);
            this.Triangles = triangles;
            CurrentCount += triangle2DCollection.Count;
        }