normalize normal at end of calc_vertex_normal_correct

This commit is contained in:
Max Lyon
2019-12-06 11:16:54 +01:00
parent 6284fb4fc9
commit 33f4941d66

View File

@@ -505,6 +505,9 @@ calc_vertex_normal_correct(VertexHandle _vh, Normal& _n) const
in_he_vec = out_he_vec;
in_he_vec *= -1;//change the orientation
}
Scalar length = norm(_n);
if (length != 0.0)
_n *= (Scalar(1.0)/length);
}
//-----------------------------------------------------------------------------