Fix segfault caused by unchecked mesh precondition

CGALProc::does_bound_a_volume(mesh) can throw if CGAL::is_closed(mesh) is not met

affects #8521
This commit is contained in:
tamasmeszaros 2022-07-25 14:07:01 +02:00
parent f0c1f9ebbd
commit 0681f92130

View File

@ -274,7 +274,7 @@ void CGALMeshDeleter::operator()(CGALMesh *ptr) { delete ptr; }
bool does_bound_a_volume(const CGALMesh &mesh) bool does_bound_a_volume(const CGALMesh &mesh)
{ {
return CGALProc::does_bound_a_volume(mesh.m); return CGAL::is_closed(mesh.m) && CGALProc::does_bound_a_volume(mesh.m);
} }
bool empty(const CGALMesh &mesh) bool empty(const CGALMesh &mesh)