Skip to content

Commit

Permalink
Merge pull request #7265 from sloriot/PMP-orient_empty_mesh
Browse files Browse the repository at this point in the history
Early exit if the mesh is empty
  • Loading branch information
lrineau committed Feb 24, 2023
2 parents 097b14d + 0c37af1 commit 56f42b4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,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));

Expand Down

0 comments on commit 56f42b4

Please sign in to comment.