Exemple #1
0
 public Polygon2DAdorner(Polygon2D p)
 {
     polygon          = p;
     triangles        = new Triangle2DCollection(1);
     lineSegments     = new LineSegment2DCollection(1);
     internalSegments = new Vector2DCollection(1);
     ghostTriangles   = new GhostTriangle2DCollection(1);
 }
        private void Divide()
        {
            int Count            = FirstPolygon.internalSegments.Count;
            Vector2DCollection v = FirstPolygon.internalSegments;

            for (int i = 0; i < Count; i++)
            {
                Diviser.DividedBy((int)(v[i].X), (int)(v[i].Y));
            }

            Count = SecondPolygon.internalSegments.Count;
            v     = SecondPolygon.internalSegments;

            for (int i = 0; i < Count; i++)
            {
                Diviser.DividedBy((int)(v[i].X), (int)(v[i].Y));
            }
        }