public CompatibleDiviser(Polygon2D a, Polygon2D b) { this.firstPolygon = a; this.secondPolygon = b; this.firstPolygonCollection = new Polygon2DCollection(); this.secondPolygonCollection = new Polygon2DCollection(); targetDiviser = new TargetDiviser(b); }
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]); } } }