diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-03 02:11:23 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-03 02:11:23 (GMT) |
commit | c4cae2a29a7df82f4f1b43543e6b22b642a275b0 (patch) | |
tree | f13c66f1d96be5a83122cb0a62583280a70e07d3 /src/CGALEvaluator.cc | |
parent | 17df3f6275fce73119c311cc73a6ad057d3b47ee (diff) |
Fixes crash if hull's children are empty objects. Fixes #345
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r-- | src/CGALEvaluator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 6ad9e4d..d0140fa 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -141,6 +141,9 @@ CGAL_Nef_polyhedron CGALEvaluator::applyHull(const CgaladvNode &node) PRINT("WARNING: hull() does not support mixing 2D and 3D objects."); continue; } + if (chN.isNull()) { // If one of the children evaluated to a null object + continue; + } if (dim == 2) { CGAL_Nef_polyhedron2::Explorer explorer = chN.p2->explorer(); BOOST_FOREACH(const CGAL_Nef_polyhedron2::Explorer::Vertex &vh, |