If the angle bound is 0, do not even test the dihedral angle of edges: all edges are marked as sharp edges.

This commit is contained in:
Jane Tournois 2012-07-19 13:54:43 +00:00
parent caec2f2dc0
commit 1dbc3fa69e
1 changed files with 1 additions and 1 deletions

View File

@ -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);