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