Merge pull request #7265 from sloriot/PMP-orient_empty_mesh

Early exit if the mesh is empty
This commit is contained in:
Laurent Rineau 2023-02-24 16:14:34 +01:00
commit 9a47215a84
1 changed files with 2 additions and 0 deletions

View File

@ -1354,6 +1354,8 @@ void orient_to_bound_a_volume(TriangleMesh& tm,
typedef typename GetGeomTraits<TriangleMesh, NamedParameters>::type GT;
typedef typename GetInitializedFaceIndexMap<TriangleMesh, NamedParameters>::type FaceIndexMap;
if (is_empty(tm)) return;
CGAL_precondition(is_closed(tm));
CGAL_precondition(is_triangle_mesh(tm));