From 0e290b75d433c83d7b0b7f1ea29390b12fbf7201 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 2 Feb 2005 16:46:41 +0000 Subject: [PATCH] some warning corrected --- wrap/gui/trackmode.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wrap/gui/trackmode.cpp b/wrap/gui/trackmode.cpp index 1fbf7a57..ee2da7de 100644 --- a/wrap/gui/trackmode.cpp +++ b/wrap/gui/trackmode.cpp @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.10 2005/01/14 15:44:03 ganovelli +PlaneMode completed + Revision 1.9 2004/09/09 22:59:21 cignoni Removed many small warnings @@ -93,7 +96,7 @@ Point3f TrackMode::HitViewPlane(Trackball *tb, const Point3f &p) { Line3fN ln= tb->camera.ViewLineFromWindow(Point3f(p[0],p[1],0)); Point3f PonVP; - bool res = Intersection(vp,ln,PonVP); + /*bool res = */Intersection(vp,ln,PonVP); return PonVP; } @@ -204,7 +207,7 @@ bool SphereMode::HitHyper(Point3f center, float radius, Point3f viewpoint, Plan */ Point3f SphereMode::Hit(Trackball *tb, const Point3f &p) { - const float Thr = tb->radius/math::Sqrt(2.0f); + // const float Thr = tb->radius/math::Sqrt(2.0f); Line3fN vn = tb->camera.ViewLineFromModel(tb->center); Line3fN ln = tb->camera.ViewLineFromWindow(Point3f(p[0],p[1],0)); @@ -218,7 +221,7 @@ Point3f SphereMode::Hit(Trackball *tb, const Point3f &p) { hitSphere=hitSphere1; else hitSphere=hitSphere2; - float dl=Distance(ln,tb->center); + /*float dl=*/Distance(ln,tb->center); bool resHp = HitHyper(tb->center, tb->radius, viewpoint, vp, hitPlane, hitHyper) ; // four cases