mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
That was bad
This commit is contained in:
@@ -159,12 +159,10 @@
|
|||||||
namespace {
|
namespace {
|
||||||
void copy_operand(const TopTools_ListOfShape& l, TopTools_ListOfShape& r) {
|
void copy_operand(const TopTools_ListOfShape& l, TopTools_ListOfShape& r) {
|
||||||
#if OCC_VERSION_HEX < 0x70000
|
#if OCC_VERSION_HEX < 0x70000
|
||||||
TopTools_ListOfShape r;
|
|
||||||
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()));
|
||||||
}
|
}
|
||||||
return r;
|
|
||||||
#else
|
#else
|
||||||
// On OCCT 7.0 and higher BRepAlgoAPI_BuilderAlgo::SetNonDestructive(true) is
|
// On OCCT 7.0 and higher BRepAlgoAPI_BuilderAlgo::SetNonDestructive(true) is
|
||||||
// called. Not entirely sure on the behaviour before 7.0, so overcautiously
|
// called. Not entirely sure on the behaviour before 7.0, so overcautiously
|
||||||
|
|||||||
Reference in New Issue
Block a user