From ff83bb3a2448295a294da4f8758a7e3164a11c2f Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 13 Oct 2005 09:25:43 +0000 Subject: [PATCH] Added cFFp and cVFp const member functions --- vcg/simplex/face/base.h | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/vcg/simplex/face/base.h b/vcg/simplex/face/base.h index a7a545b8..a5831d9a 100644 --- a/vcg/simplex/face/base.h +++ b/vcg/simplex/face/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.29 2005/09/28 19:32:09 m_di_benedetto +Added const qualifier in GetBBox method. + Revision 1.28 2005/06/17 00:43:34 cignoni Added a named typedef for the per wedge TexCoordinate @@ -582,29 +585,14 @@ public: return dum; #endif } - + inline const FFTYPE * cFFp( const int j ) const {return FFp(j);} + inline FFTYPE * & FFp1( const int j ) { return FFp((j+1)%3);} inline FFTYPE * & FFp2( const int j ) { return FFp((j+2)%3);} inline const FFTYPE * const& FFp1( const int j ) const { return FFp((j+1)%3);} inline const FFTYPE * const& FFp2( const int j ) const { return FFp((j+2)%3);} - inline bool const IsBorder( const int & j ) const - { - assert( (_flags & DELETED) == 0 ); - assert( (_flags & NOTREAD) == 0 ); - assert(j>=0); - assert(j<3); -#if defined(__VCGLIB_FACE_AF) - return (_ffp[j]==this); -#elif defined(__VCGLIB_FACE_AS) - return (fs[j]==this); -#else - assert(0); - return ((FFTYPE *)this==0); -#endif - } - /** Return the pointer to the j-th adjacent face. @param j Index of the edge. @@ -670,6 +658,7 @@ public: return (FFTYPE *)this; #endif } + inline const FFTYPE * cVFp( const int j ) const {return VFp(j);} /** Return the index that the face have in the j-th adjacent face.