Don't handle bspline-edges on planar faces in cgal-kernel #5484

This commit is contained in:
Thomas Krijnen
2024-09-30 12:28:28 +02:00
parent af7bdf6b9f
commit 62f696da51
+9 -1
View File
@@ -155,9 +155,17 @@ CGAL::Nef_polyhedron_3<Kernel_> ifcopenshell::geometry::utils::create_nef_polyhe
bool CgalKernel::convert(const taxonomy::shell::ptr l, cgal_shape_t& shape) {
for (auto& f : l->children) {
if (f->basis && f->basis->kind() != taxonomy::PLANE) {
Logger::Error("Non-planar faces not supported at the moment");
Logger::Error("CGAL Kernel: Non-planar faces not supported at the moment");
return false;
}
for (auto& w : f->children) {
for (auto& e : w->children) {
if (e->basis && e->basis->kind() == taxonomy::BSPLINE_CURVE) {
Logger::Error("CGAL Kernel: B-spline edge curves not supported at the moment");
return false;
}
}
}
}
if (false && l->children.size() > 100) {
static double inf = 1.e9; // std::numeric_limits<double>::infinity();