diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h index 98eadad506f..420c82da769 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/measure.h @@ -169,6 +169,7 @@ namespace Polygon_mesh_processing { halfedges_around_face(h, pmesh)) { result += edge_length(haf, pmesh, np); + exact(result); } return result; } @@ -306,6 +307,7 @@ namespace Polygon_mesh_processing { BOOST_FOREACH(face_descriptor f, face_range) { result += face_area(f, tmesh, np); + exact(result); } return result; } @@ -429,6 +431,7 @@ namespace Polygon_mesh_processing { get(vpm, target(halfedge(f, tmesh), tmesh)), get(vpm, target(next(halfedge(f, tmesh), tmesh), tmesh)), get(vpm, target(prev(halfedge(f, tmesh), tmesh), tmesh))); + exact(volume); } return volume; } diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/measures_test.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/measures_test.cpp index a4f67620cbb..65772a90855 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/measures_test.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/measures_test.cpp @@ -143,12 +143,12 @@ int main(int argc, char* argv[]) const char* filename_polyhedron = (argc > 1) ? argv[1] : "data/mech-holes-shark.off"; test_polyhedron,Epic>(filename_polyhedron); - //test_polyhedron,Epec>(filename_polyhedron); + test_polyhedron,Epec>(filename_polyhedron); const char* filename_surface_mesh = (argc > 1) ? argv[1] : "data/elephant.off"; test_closed_surface_mesh,Epic>(filename_surface_mesh); - //test_closed_surface_mesh,Epec>(filename_surface_mesh); + test_closed_surface_mesh,Epec>(filename_surface_mesh); std::cerr << "All done." << std::endl; return 0;