From 1f4a4221e3d7c375092425bd9326224bab436fc6 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Tue, 11 Apr 2006 08:10:05 +0000 Subject: [PATCH] changes necessary for gcc 3.4.5 on linux 64bit. --- vcg/space/point.h | 20 +++++++++++++++++++- vcg/space/space.h | 5 ++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/vcg/space/point.h b/vcg/space/point.h index 0df06b41..56c9f5b1 100644 --- a/vcg/space/point.h +++ b/vcg/space/point.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2005/12/12 11:22:32 ganovelli +compiled with gcc + Revision 1.6 2005/01/12 11:25:52 ganovelli corrected Point<3 @@ -305,6 +308,9 @@ class Point2 : public PointBase<2,S> { public: typedef S ScalarType; typedef Point2 PointType; + using PointBase<2,S>::_v; + using PointBase<2,S>::V; + using PointBase<2,S>::W; //@{ /** @name Special members for 2D points. **/ @@ -469,6 +475,12 @@ class Point3 : public PointBase<3,S> { public: typedef S ScalarType; typedef Point3 PointType; + using PointBase<3,S>::_v; + using PointBase<3,S>::V; + using PointBase<3,S>::W; + using PointBase<3,S>::k0; + using PointBase<3,S>::k1; + using PointBase<3,S>::k2; //@{ /** @name Special members for 3D points. **/ @@ -481,7 +493,7 @@ public: /// Cross product for 3D points inline PointType operator ^ ( PointType const & p ) const { - return Point ( + return Point3 ( _v[1]*p._v[2] - _v[2]*p._v[1], _v[2]*p._v[0] - _v[0]*p._v[2], _v[0]*p._v[1] - _v[1]*p._v[0] ); @@ -626,6 +638,12 @@ class Point4 : public PointBase<4,S> { public: typedef S ScalarType; typedef Point4 PointType; + using PointBase<3,S>::_v; + using PointBase<3,S>::V; + using PointBase<3,S>::W; + using PointBase<3,S>::k0; + using PointBase<3,S>::k1; + using PointBase<3,S>::k2; //@{ /** @name Special members for 4D points. **/ /// default diff --git a/vcg/space/space.h b/vcg/space/space.h index aa3005ad..33949542 100644 --- a/vcg/space/space.h +++ b/vcg/space/space.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2006/01/03 12:44:58 spinelli +fix some bugs. + Revision 1.1 2004/03/16 03:08:02 tarini first commit @@ -78,4 +81,4 @@ public: } // end namespace -#endif \ No newline at end of file +#endif