VTb moved to VTp

This commit is contained in:
Paolo Cignoni 2007-02-26 14:21:44 +00:00
parent ece2f97c8b
commit b7ab2cfe56
1 changed files with 11 additions and 5 deletions

View File

@ -23,6 +23,9 @@
/**************************************************************************** /****************************************************************************
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.29 2007/02/20 14:08:34 ganovelli
added QualityType to comply vertexplus type
Revision 1.28 2006/08/23 15:34:20 marfr960 Revision 1.28 2006/08/23 15:34:20 marfr960
added minimal comments added minimal comments
@ -76,6 +79,9 @@ Revision 1.12 2004/05/10 13:31:13 ganovelli
function for edge adjacency added function for edge adjacency added
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.29 2007/02/20 14:08:34 ganovelli
added QualityType to comply vertexplus type
Revision 1.28 2006/08/23 15:34:20 marfr960 Revision 1.28 2006/08/23 15:34:20 marfr960
added minimal comments added minimal comments
@ -621,25 +627,25 @@ inline const int & VFi() const
#if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS)) #if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS))
// Pointer to first tetrahedron of the start implements the Vertex-Tetrahedron Topology // Pointer to first tetrahedron of the start implements the Vertex-Tetrahedron Topology
protected: protected:
VTTYPE *_vtb; VTTYPE *_vtp;
int _vti; int _vti;
#endif #endif
public: public:
inline VTTYPE * & VTb() inline VTTYPE * & VTp()
{ {
#if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS)) #if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS))
return _vtb; return _vtp;
#else #else
assert(0);// you are probably trying to use VF topology in a vertex without it assert(0);// you are probably trying to use VF topology in a vertex without it
return *((VTTYPE **)(_flags)); return *((VTTYPE **)(_flags));
#endif #endif
} }
inline const VTTYPE * & VTb() const inline const VTTYPE * & VTp() const
{ {
#if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS)) #if ((defined __VCGLIB_VERTEX_AT) || (defined __VCGLIB_VERTEX_ATS))
return _vtb; return _vtp;
#else #else
assert(0);// you are probably trying to use VF topology in a vertex without it assert(0);// you are probably trying to use VF topology in a vertex without it
return (VTTYPE *)this; return (VTTYPE *)this;