From 6be3772654bd1475470921f13b2c1b1daad47a4c Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 17 Oct 2016 14:43:15 +0200 Subject: [PATCH] Fix calls to dihedral_angle() --- Mesh_3/include/CGAL/Mesh_3/dihedral_angle_3.h | 2 +- .../triangulate_hole_Polyhedron_3_no_delaunay_test.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/dihedral_angle_3.h b/Mesh_3/include/CGAL/Mesh_3/dihedral_angle_3.h index 5ce2397f297..d5a85054a2f 100644 --- a/Mesh_3/include/CGAL/Mesh_3/dihedral_angle_3.h +++ b/Mesh_3/include/CGAL/Mesh_3/dihedral_angle_3.h @@ -41,7 +41,7 @@ dihedral_angle(const typename K::Point_3& a, K k = K()) { // Now in the CGAL kernels - return k.compute_dihedral_angle_3_object()(a, b, c, d); + return k.compute_approximate_dihedral_angle_3_object()(a, b, c, d); } diff --git a/Polygon_mesh_processing/test/Polygon_mesh_processing/triangulate_hole_Polyhedron_3_no_delaunay_test.cpp b/Polygon_mesh_processing/test/Polygon_mesh_processing/triangulate_hole_Polyhedron_3_no_delaunay_test.cpp index 9ec5715273e..e3c7b62d9b6 100644 --- a/Polygon_mesh_processing/test/Polygon_mesh_processing/triangulate_hole_Polyhedron_3_no_delaunay_test.cpp +++ b/Polygon_mesh_processing/test/Polygon_mesh_processing/triangulate_hole_Polyhedron_3_no_delaunay_test.cpp @@ -82,11 +82,11 @@ CGAL::internal::Weight_min_max_dihedral_and_area Halfedge_handle edge_it = halfedge(*begin, poly); double ang_max = 0; for(int i = 0; i < 3; ++i) { - double angle = 180 - CGAL::abs( - CGAL::dihedral_angle(ppmap[target(edge_it,poly)], - ppmap[source(edge_it,poly)], - ppmap[target(next(edge_it,poly),poly)], - ppmap[target(next(opposite(edge_it,poly),poly),poly)]) ); + double angle = 180 - + CGAL::abs(CGAL::approximate_dihedral_angle(ppmap[target(edge_it,poly)], + ppmap[source(edge_it,poly)], + ppmap[target(next(edge_it,poly),poly)], + ppmap[target(next(opposite(edge_it,poly),poly),poly)]) ); edge_it = next(edge_it,poly); ang_max = (std::max)(angle, ang_max); }