diff --git a/MovePlugin.cc b/MovePlugin.cc index 1933d773169ad20b55bd985c93fb58f42bd21990..15458044988bd119b989e53a085465c1800b8b9d 100644 --- a/MovePlugin.cc +++ b/MovePlugin.cc @@ -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)