From 1dbc3fa69ebb43b7c9435e4fafa5e0b648fa9c19 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Thu, 19 Jul 2012 13:54:43 +0000 Subject: [PATCH] If the angle bound is 0, do not even test the dihedral angle of edges: all edges are marked as sharp edges. --- Mesh_3/include/CGAL/Mesh_3/Detect_features_in_polyhedra.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Detect_features_in_polyhedra.h b/Mesh_3/include/CGAL/Mesh_3/Detect_features_in_polyhedra.h index 2e4608b8410..0222921dccf 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Detect_features_in_polyhedra.h +++ b/Mesh_3/include/CGAL/Mesh_3/Detect_features_in_polyhedra.h @@ -93,7 +93,7 @@ detect_sharp_edges(Polyhedron& polyhedron, FT angle_in_deg) const for(typename Polyhedron::Halfedge_iterator he = polyhedron.edges_begin(), end = polyhedron.edges_end() ; he != end ; ++he) { - if(he->is_border() || is_sharp(he,cos_angle)) + if(he->is_border() || angle_in_deg == FT() || is_sharp(he,cos_angle)) { he->set_feature_edge(true); he->opposite()->set_feature_edge(true);