From 17369b521ba9a9e3eedc53cbeacf1f4f130f3e1b Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 23 Jun 2008 14:33:51 +0000 Subject: [PATCH] Matrix transformations corrected in glCylinder and glArrow. --- wrap/gl/addons.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrap/gl/addons.h b/wrap/gl/addons.h index 656b2f22..d1b95425 100644 --- a/wrap/gl/addons.h +++ b/wrap/gl/addons.h @@ -333,7 +333,7 @@ public: vcg::Point3f Direct=(head-tail); float l_body=Direct.Norm()-head_lenght; glPushMatrix(); - glTranslate(vcg::Point3f(tail.Norm(),0,0)); + //glTranslate(vcg::Point3f(tail.Norm(),0,0)); Cylinder(body_slice,l_body,body_width,useDisplList); glPopMatrix(); glTranslate(vcg::Point3f(l_body,0,0)); @@ -361,7 +361,7 @@ public: glMultMatrixf(&tr[0][0]); vcg::Point3f Direct=(head-tail); float l_body=Direct.Norm(); - glTranslate(vcg::Point3f(tail.Norm(),0,0)); + //glTranslate(vcg::Point3f(tail.Norm(),0,0)); Cone(slice,l_body,width,useDisplList); glPopMatrix(); glPopAttrib(); @@ -384,7 +384,7 @@ public: glMultMatrixf(&tr[0][0]); vcg::Point3f Direct=(head-tail); float l_body=Direct.Norm(); - glTranslate(vcg::Point3f(tail.Norm(),0,0)); + //glTranslate(vcg::Point3f(tail.Norm(),0,0)); Cylinder(slice,l_body,width,useDisplList); glPopMatrix(); glPopAttrib();