From 77415bc2137e9ebfc503b86fa5a7ca0d11e54687 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Fri, 15 Feb 2008 20:54:45 +0000 Subject: [PATCH] removed some variable initialization related warning --- wrap/gui/trackutils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrap/gui/trackutils.h b/wrap/gui/trackutils.h index 6fb4a3f1..788e558d 100644 --- a/wrap/gui/trackutils.h +++ b/wrap/gui/trackutils.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2007/10/22 14:39:54 cignoni +corrected bug into the drawsphere (thanks to nico and guido!) + Revision 1.6 2007/08/17 09:19:40 cignoni glEnable (GL_LINE_SMOOTH) should go before changing the linewidth. @@ -215,7 +218,7 @@ Point3f HitSphere (Trackball * tb, const Point3f & p) Line3fN ln = tb->camera.ViewLineFromWindow (Point3f (p[0], p[1], 0)); Point3f viewpoint = tb->camera.ViewPoint (); Plane3f vp = GetViewPlane (tb->camera, tb->center); - Point3f hit, hitPlane, hitSphere, hitSphere1, hitSphere2, hitHyper; + Point3f hit(0,0,0), hitPlane(0,0,0), hitSphere(0,0,0), hitSphere1(0,0,0), hitSphere2(0,0,0), hitHyper(0,0,0); IntersectionLinePlane < float >(vp, ln, hitPlane); Sphere3f sphere (tb->center, tb->radius);