diff --git a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp index 8074d3c76d5..4c0c77d3096 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp @@ -394,8 +394,10 @@ public: bool isEmpty() const { return edges.empty(); } void compute_bbox() const { if(isEmpty()) + { _bbox = Bbox(); - return; + return; + } CGAL::Bbox_3 bbox = edges.begin()->bbox(); for(size_t i = 1, end = edges.size(); i < end; ++i) { bbox = bbox + edges[i].bbox();