Added V() access function instead of V(0)

This commit is contained in:
Paolo Cignoni 2004-07-27 09:47:49 +00:00
parent 3cbbebedb7
commit c8d1e28f66
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.9 2004/07/18 07:45:30 cignoni
Removed two const modifiers from the VFIterator
Revision 1.8 2004/07/15 12:03:07 ganovelli Revision 1.8 2004/07/15 12:03:07 ganovelli
minor changes minor changes
@ -98,6 +101,7 @@ public:
Pos(FaceType * const fp, int const zp){f=fp; z=zp; v=f->V(zp);} Pos(FaceType * const fp, int const zp){f=fp; z=zp; v=f->V(zp);}
// access functions // access functions
VertexType *& V(){return f->UberV(z);}
VertexType *& V(const int & i){assert( (i>=0) && (i<2)); return f->UberV( (z +i) %3);} VertexType *& V(const int & i){assert( (i>=0) && (i<2)); return f->UberV( (z +i) %3);}
/// Operator to compare two half-edge /// Operator to compare two half-edge