Make cgal optional

This commit is contained in:
Thomas Krijnen
2023-03-22 11:47:00 +01:00
parent 2b1b79bf1c
commit 031694af2b
10 changed files with 36 additions and 1 deletions
@@ -1,3 +1,5 @@
#ifdef IFOPSH_WITH_CGAL
#include "validation_utils.h"
using namespace ifcopenshell::geometry;
@@ -183,3 +185,5 @@ void fix_spaceboundaries(IfcParse::IfcFile& f, bool no_progress, bool quiet, boo
}
}
}
#endif
@@ -1,3 +1,5 @@
#ifdef IFOPSH_WITH_CGAL
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
#include "../ifcgeom/IfcGeomFilter.h"
#include "../ifcgeom/Iterator.h"
@@ -231,3 +233,5 @@ void fix_storeycontainment(IfcParse::IfcFile& f, bool no_progress, bool quiet, b
" objects ");
}
}
#endif
@@ -1,3 +1,5 @@
#ifdef IFOPSH_WITH_CGAL
#include "validation_utils.h"
#include <CGAL/Polygon_mesh_processing/bbox.h>
@@ -196,3 +198,4 @@ void fix_wallconnectivity(IfcParse::IfcFile& f, bool no_progress, bool quiet, bo
std::wcout << "total_conversion_to_poly_time " << conversion_to_poly << std::endl;
}
#endif
+5 -1
View File
@@ -1,3 +1,5 @@
#ifdef IFOPSH_WITH_CGAL
#include "validation_utils.h"
double facet_area(const cgal_shape_t::Facet_handle& f) {
@@ -25,4 +27,6 @@ void dump_facet(const cgal_shape_t::Facet_handle& f) {
auto osss = oss.str();
std::wcout << osss.c_str() << std::endl;
}
}
#endif
+4
View File
@@ -1,3 +1,5 @@
#ifdef IFOPSH_WITH_CGAL
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
#include "../ifcgeom/IfcGeomFilter.h"
#include "../ifcgeom/Iterator.h"
@@ -582,3 +584,5 @@ struct intersection_validator {
CGAL::box_self_intersection_d(boxes.begin(), boxes.end(), fn);
}
};
#endif