Пример #1
0
        public CompatibleDiviser(Polygon2D a, Polygon2D b)
        {
            this.firstPolygon  = a;
            this.secondPolygon = b;

            this.firstPolygonCollection  = new Polygon2DCollection();
            this.secondPolygonCollection = new Polygon2DCollection();

            targetDiviser = new TargetDiviser(b);
        }
Пример #2
0
        private void GetResult()
        {
            this.FirstResult  = new Polygon2DCollection();
            this.SecondResult = new Polygon2DCollection();

            for (int i = 0; i < FirstPolygons.SubDivision.Count; i++)
            {
                if (FirstPolygons.SubDivision[i].VertexCount == 3)
                {
                    this.FirstResult.Add(FirstPolygons.SubDivision[i]);
                    this.SecondResult.Add(SecondPolygons.SubDivision[i]);
                }
            }
        }