Refactoring

This commit is contained in:
Thomas Krijnen
2022-11-13 11:21:58 +01:00
parent 3736a8b4b4
commit c18458b3db
+5 -4
View File
@@ -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;
}
}