Gracefully handle malformed PolySets in minkowski. Fixes #1137

master
Marius Kintel 2015-01-05 14:33:54 -05:00
parent 5786ba89ff
commit 1896c3f09a
1 changed files with 1 additions and 1 deletions

View File

@ -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);