diff --git a/wrap/utils.h b/wrap/utils.h index 2fe19689..c06048ed 100644 --- a/wrap/utils.h +++ b/wrap/utils.h @@ -25,6 +25,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2005/09/29 22:22:59 m_di_benedetto +Added classes GetBox3Functor and GetBarycenter3Functor. + Revision 1.1 2005/09/28 20:01:35 m_di_benedetto First Commit. @@ -60,6 +63,8 @@ public: return (t); } }; +/// Helper class used to build in a easy way a functor that gives the bbox of a face +/// used mainly in the aabbtree that require such a functor as a parameter class GetBox3Functor { public: @@ -79,16 +84,6 @@ public: } }; -template -inline Point3 Abs(const Point3 & p) { - return (Point3(math::Abs(p[0]), math::Abs(p[1]), math::Abs(p[2]))); -} - -template -inline Point3 LowClampToZero(const Point3 & p) { - return (Point3(math::Max(p[0], (SCALARTYPE)0), math::Max(p[1], (SCALARTYPE)0), math::Max(p[2], (SCALARTYPE)0))); -} - } // end namespace vcg #endif // #ifndef __VCGLIB_WRAPUTILS_H