mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Refactoring
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "../ifcgeom_schema_agnostic/IfcGeomIterator.h"
|
||||
#include "../ifcgeom_schema_agnostic/IfcGeomMaterial.h"
|
||||
#include "../ifcgeom_schema_agnostic/Kernel.h"
|
||||
#include "../ifcgeom_schema_agnostic/base_utils.h"
|
||||
|
||||
#include <NCollection_UBTree.hxx>
|
||||
#include <BRepBndLib.hxx>
|
||||
@@ -112,8 +113,8 @@ namespace IfcGeom {
|
||||
return dss.Value() <= extend;
|
||||
}
|
||||
} else {
|
||||
if (IfcGeom::Kernel::count(A, TopAbs_SHELL) == 0 ||
|
||||
IfcGeom::Kernel::count(B, TopAbs_SHELL) == 0)
|
||||
if (util::count(A, TopAbs_SHELL) == 0 ||
|
||||
util::count(B, TopAbs_SHELL) == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -121,14 +122,14 @@ namespace IfcGeom {
|
||||
if (completely_within) {
|
||||
BRepAlgoAPI_Cut cut(B, A);
|
||||
if (cut.IsDone()) {
|
||||
if (IfcGeom::Kernel::count(cut.Shape(), TopAbs_SHELL) == 0) {
|
||||
if (util::count(cut.Shape(), TopAbs_SHELL) == 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
BRepAlgoAPI_Common common(A, B);
|
||||
if (common.IsDone()) {
|
||||
if (IfcGeom::Kernel::count(common.Shape(), TopAbs_SHELL) > 0) {
|
||||
if (util::count(common.Shape(), TopAbs_SHELL) > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user