diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_clip.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_clip.cpp index 2aee94a327d..650cd269b63 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_clip.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/test_pmp_clip.cpp @@ -81,6 +81,21 @@ void test() PMP::clip(tm1, K::Plane_3(-0.236474, 0.437732, 0.867451, -0.838791), params::clip_volumes(true)); assert(CGAL::is_closed(tm1)); assert(!CGAL::is_empty(tm1)); + CGAL::clear(tm1); + + input.open("data-coref/cube.off"); + input >> tm1; + input.close(); + PMP::clip(tm1, K::Plane_3(0, 0, 1, 2)); + assert(CGAL::is_empty(tm1)); + CGAL::clear(tm1); + + input.open("data-coref/cube.off"); + input >> tm1; + input.close(); + PMP::clip(tm1, K::Plane_3(0, 0, 1, -2)); + assert(!CGAL::is_empty(tm1)); + CGAL::clear(tm1); } int main()