From d9166188425a3e00dbd06cf7e215cbdbd287212f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 5 Jun 2018 14:09:45 +0200 Subject: [PATCH] one more test --- .../Polygon_mesh_processing/test_pmp_clip.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()