Commit 472c1dba authored by Jan Möbius's avatar Jan Möbius

Removed some casts

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9360 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 92312d47
......@@ -1646,10 +1646,10 @@ void MovePlugin::transformMesh(ACG::Matrix4x4d _mat , MeshT& _mesh ) {
for (; v_it!=v_end; ++v_it) {
// transform the mesh vertex
_mesh.set_point(v_it,(typename MeshT::Point)_mat.transform_point((OpenMesh::Vec3d)(_mesh.point(v_it))));
_mesh.set_point(v_it,_mat.transform_point(_mesh.point(v_it)));
// transform the vertex normal
typename MeshT::Point n = (typename MeshT::Point)invMat.transform_vector((OpenMesh::Vec3d)(_mesh.normal(v_it)));
typename MeshT::Point n = invMat.transform_vector(_mesh.normal(v_it));
//re-normalize the vertex normal
if (n.length () != 0.0)
......@@ -1663,7 +1663,7 @@ void MovePlugin::transformMesh(ACG::Matrix4x4d _mat , MeshT& _mesh ) {
for (; f_it != f_end; ++f_it) {
// transform the face normal
typename MeshT::Point n = (typename MeshT::Point)invMat.transform_vector((OpenMesh::Vec3d)(_mesh.normal(f_it)));
typename MeshT::Point n = invMat.transform_vector(_mesh.normal(f_it));
//re-normalize the face normal
if (n.length () != 0.0)
......
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