diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index 77a4bbeb..b58c5701 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.19 2005/12/15 11:19:00 corsini +Fix operators + Revision 1.18 2005/12/15 10:53:16 corsini Add constructor which takes as input a face and a vertex @@ -147,16 +150,16 @@ public: VertexType *& V(const int & i){assert( (i>=0) && (i<2)); return f->UberV( (z +i) %3);} /// Operator to compare two half-edge - inline bool operator == ( Pos const & p ) const { + inline bool operator == ( PosType const & p ) const { return (f==p.f && z==p.z && v==p.v); } /// Operator to compare two half-edge - inline bool operator != ( Pos const & p ) const { + inline bool operator != ( PosType const & p ) const { return (f!=p.f || z!=p.z || v!=p.v); } /// Operator to order half-edge; it's compare at the first the face pointers, then the index of the edge and finally the vertex pointers - inline bool operator <= ( Pos const & p) const { + inline bool operator <= ( PosType const & p) const { return (f!=p.f)?(f ht = *this; + PosType ht = *this; bool bf=false; do {