From 4cd0932d7d1a1cac87b35c75075a13596c1cd1de Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 12 Sep 2022 10:32:30 +0200 Subject: [PATCH] Fix to boolean utils, version detection, and behaviour on old versions --- src/ifcgeom_schema_agnostic/boolean_utils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcgeom_schema_agnostic/boolean_utils.cpp b/src/ifcgeom_schema_agnostic/boolean_utils.cpp index b8757aecb6..38d2a06f72 100644 --- a/src/ifcgeom_schema_agnostic/boolean_utils.cpp +++ b/src/ifcgeom_schema_agnostic/boolean_utils.cpp @@ -16,11 +16,13 @@ #include #include #include +#include #include void IfcGeom::util::copy_operand(const TopTools_ListOfShape & l, TopTools_ListOfShape & r) { #if OCC_VERSION_HEX < 0x70000 + r.Clear(); TopTools_ListIteratorOfListOfShape it(l); for (; it.More(); it.Next()) { r.Append(BRepBuilderAPI_Copy(it.Value()));