Experiment with simple_cartesian<double> kernel

This commit is contained in:
Thomas Krijnen
2023-04-03 13:34:35 +02:00
parent 49416808d4
commit d12d14e7f2
7 changed files with 104 additions and 21 deletions
+8
View File
@@ -10,6 +10,10 @@
#ifdef IFOPSH_WITH_CGAL
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
#undef CGAL_KERNEL_H
#undef CGALCONVERSIONRESULT_H
#define IFOPSH_SIMPLE_KERNEL
#include "../ifcgeom/kernels/cgal/CgalKernel.h"
#endif
using namespace ifcopenshell::geometry;
@@ -46,6 +50,10 @@ ifcopenshell::geometry::kernels::AbstractKernel* ifcopenshell::geometry::kernels
if (geometry_library_lower == "cgal") {
return new CgalKernel(conv_settings);
}
if (geometry_library_lower == "cgal-simple") {
return new SimpleCgalKernel(conv_settings);
}
#endif
throw IfcParse::IfcException("No geometry kernel registered for " + geometry_library);