mirror of https://github.com/vitalif/openscad
Gracefully handle malformed PolySets in minkowski. Fixes #1137
parent
5786ba89ff
commit
1896c3f09a
|
@ -228,7 +228,7 @@ namespace CGALUtils {
|
|||
if (ps) {
|
||||
PRINTDB("Minkowski: child %d is nonconvex PolySet, transforming to Nef and decomposing...", i);
|
||||
CGAL_Nef_polyhedron *p = createNefPolyhedronFromGeometry(*ps);
|
||||
decomposed_nef = *p->p3;
|
||||
if (!p->isEmpty()) decomposed_nef = *p->p3;
|
||||
delete p;
|
||||
} else {
|
||||
PRINTDB("Minkowski: child %d is nonconvex Nef, decomposing...",i);
|
||||
|
|
Loading…
Reference in New Issue