mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 02:10:59 +00:00
Fix to boolean utils, version detection, and behaviour on old versions
This commit is contained in:
@@ -16,11 +16,13 @@
|
|||||||
#include <GeomAPI_ExtremaCurveCurve.hxx>
|
#include <GeomAPI_ExtremaCurveCurve.hxx>
|
||||||
#include <ShapeAnalysis_Surface.hxx>
|
#include <ShapeAnalysis_Surface.hxx>
|
||||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||||
|
#include <Standard_Version.hxx>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
void IfcGeom::util::copy_operand(const TopTools_ListOfShape & l, TopTools_ListOfShape & r) {
|
void IfcGeom::util::copy_operand(const TopTools_ListOfShape & l, TopTools_ListOfShape & r) {
|
||||||
#if OCC_VERSION_HEX < 0x70000
|
#if OCC_VERSION_HEX < 0x70000
|
||||||
|
r.Clear();
|
||||||
TopTools_ListIteratorOfListOfShape it(l);
|
TopTools_ListIteratorOfListOfShape it(l);
|
||||||
for (; it.More(); it.Next()) {
|
for (; it.More(); it.Next()) {
|
||||||
r.Append(BRepBuilderAPI_Copy(it.Value()));
|
r.Append(BRepBuilderAPI_Copy(it.Value()));
|
||||||
|
|||||||
Reference in New Issue
Block a user