Skip to content

Commit 56f42b4

Browse files
committed
Merge pull request #7265 from sloriot/PMP-orient_empty_mesh
Early exit if the mesh is empty
2 parents 097b14d + 0c37af1 commit 56f42b4

File tree

1 file changed

+2
-0
lines changed
  • Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing

1 file changed

+2
-0
lines changed

Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/orientation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,8 @@ void orient_to_bound_a_volume(TriangleMesh& tm,
13641364
typedef typename GetGeomTraits<TriangleMesh, NamedParameters>::type GT;
13651365
typedef typename GetInitializedFaceIndexMap<TriangleMesh, NamedParameters>::type FaceIndexMap;
13661366

1367+
if (is_empty(tm)) return;
1368+
13671369
CGAL_precondition(is_closed(tm));
13681370
CGAL_precondition(is_triangle_mesh(tm));
13691371

0 commit comments

Comments
 (0)