Commit 0bc61d58 authored by Jan Möbius's avatar Jan Möbius

OM3 fix

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1129 fdac6126-5c0c-442c-9429-916003d36597
parent 208e753e
......@@ -73,14 +73,14 @@ uint PolyMeshT<Kernel>::find_feature_edges(Scalar _angle_tresh)
uint n_feature_edges = 0;
for (EdgeIter e_it = Kernel::edges_begin(); e_it != Kernel::edges_end(); ++e_it)
{
if (fabs(calc_dihedral_angle(e_it)) > _angle_tresh)
if (fabs(calc_dihedral_angle(*e_it)) > _angle_tresh)
{//note: could be optimized by comparing cos(dih_angle) vs. cos(_angle_tresh)
status(e_it).set_feature(true);
status(*e_it).set_feature(true);
n_feature_edges++;
}
else
{
status(e_it).set_feature(false);
status(*e_it).set_feature(false);
}
}
return n_feature_edges;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment