Distinction between general exception / not supported / not implemented #5484

This commit is contained in:
Thomas Krijnen
2024-10-09 13:14:49 +02:00
parent a38a3ad2fb
commit da0d383666
3 changed files with 73 additions and 46 deletions
+2 -2
View File
@@ -156,13 +156,13 @@ 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("CGAL Kernel: Non-planar faces not supported at the moment");
return false;
throw not_supported_error();
}
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;
throw not_supported_error();
}
}
}