mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Fixes for spatial tree on iterator and positive extend param
This commit is contained in:
@@ -166,8 +166,11 @@ namespace IfcGeom {
|
|||||||
|
|
||||||
std::vector<T> ts;
|
std::vector<T> ts;
|
||||||
|
|
||||||
if (IfcGeom::Kernel::count(s, TopAbs_SHELL) == 0) {
|
if (extend < 0.) {
|
||||||
return ts;
|
// Shell are only required when we do the boolean based intersection check
|
||||||
|
if (IfcGeom::Kernel::count(s, TopAbs_SHELL) == 0) {
|
||||||
|
return ts;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ts = select_box(bb, completely_within);
|
ts = select_box(bb, completely_within);
|
||||||
@@ -288,7 +291,9 @@ namespace IfcGeom {
|
|||||||
if (it.initialize()) {
|
if (it.initialize()) {
|
||||||
do {
|
do {
|
||||||
IfcGeom::BRepElement<double>* elem = (IfcGeom::BRepElement<double>*)it.get();
|
IfcGeom::BRepElement<double>* elem = (IfcGeom::BRepElement<double>*)it.get();
|
||||||
add((IfcUtil::IfcBaseEntity*)it.file()->instance_by_id(elem->id()), elem->geometry().as_compound());
|
auto compound = elem->geometry().as_compound();
|
||||||
|
compound.Move(elem->transformation().data());
|
||||||
|
add((IfcUtil::IfcBaseEntity*)it.file()->instance_by_id(elem->id()), compound);
|
||||||
} while (it.next());
|
} while (it.next());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user