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:
parent
f0c1f9ebbd
commit
0681f92130
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user