Added access functions F()

This commit is contained in:
Paolo Cignoni 2007-01-02 10:06:53 +00:00
parent b226ba87ba
commit 07fb3ae2df
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.26 2006/12/29 13:13:00 giec
Corrected wrong assert in V(i) access function
Revision 1.25 2006/12/04 16:06:12 cignoni Revision 1.25 2006/12/04 16:06:12 cignoni
Added FFlip() and const VFlip() operators Added FFlip() and const VFlip() operators
@ -170,6 +173,8 @@ public:
// access functions // access functions
VertexType *& V(){return f->UberV(z);} VertexType *& V(){return f->UberV(z);}
VertexType *& V(const int & i){assert( (i>=0) && (i<3)); return f->UberV( (z +i) %3);} VertexType *& V(const int & i){assert( (i>=0) && (i<3)); return f->UberV( (z +i) %3);}
FaceType *& F(){ return f;}
/// Operator to compare two half-edge /// Operator to compare two half-edge
inline bool operator == ( PosType const & p ) const { inline bool operator == ( PosType const & p ) const {