fixed exception handling

This commit is contained in:
Dmitry Anisimov
2021-02-22 17:37:57 +01:00
parent c0627fc05f
commit e16e773fb8
@@ -498,12 +498,25 @@ bool does_self_intersect(const FaceRange& face_range,
{
CGAL_precondition(CGAL::is_triangle_mesh(tmesh));
try {
try
{
CGAL::Emptyset_iterator unused_out;
internal::self_intersections_impl<ConcurrencyTag>(face_range, tmesh, unused_out, true /*throw*/, np);
} catch(const std::exception&) {
}
catch (const CGAL::internal::Throw_at_output_exception&)
{
return true;
}
#if defined(CGAL_LINKED_WITH_TBB)
catch (tbb::captured_exception& e)
{
return true;
}
#endif
catch ( ... )
{
throw;
}
return false;
}