diff --git a/wrap/gui/view.h b/wrap/gui/view.h index a0c4975c..7cdc4045 100644 --- a/wrap/gui/view.h +++ b/wrap/gui/view.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.12 2005/02/10 20:09:11 tarini +dispelled the mega-evil of GL_TRANSPOSE_*_MATRIX_ARB + Revision 1.11 2005/01/19 10:29:45 cignoni Removed the inclusion of a glext.h @@ -177,14 +180,12 @@ template Line3 View::ViewLineFromModel(const Point3 &p) // Note that p it is assumed to be in window coordinate. template Line3 View::ViewLineFromWindow(const Point3 &p) { - Point3 vp=ViewPoint(); Line3 ln; // plane perpedicular to view direction and passing through manip center - /*Matrix44 mi=model; - Invert(mi); - */Point3f pp=UnProject(p); + Point3 vp=ViewPoint(); + Point3 pp=UnProject(p); ln.SetOrigin(vp); ln.SetDirection(pp-vp); - return ln; + return ln; } template Point3 View::Project(const Point3 &p) const {