From 99a41cf44678838266fd1db56fc00655be61544f Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 28 Oct 2011 14:20:27 +0000 Subject: [PATCH] corrected ApplyRigidTransformation (zeroed last row of rot) --- vcg/math/shot.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcg/math/shot.h b/vcg/math/shot.h index ab4c52c1..07705381 100644 --- a/vcg/math/shot.h +++ b/vcg/math/shot.h @@ -487,6 +487,8 @@ void Shot::ApplyRigidTransformation(const Matrix44 & M) // roto-translate the viewpoint Extrinsics.tra = M * Extrinsics.tra; Matrix44 newRot = rotM * M.transpose(); + newRot[3][0] = newRot[3][1] = newRot[3][2] = 0.0; + Extrinsics.SetRot(newRot); }