From fa45011ed937cd5910c2ff94c4fb9bcc0f3933c4 Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Thu, 15 Dec 2005 11:19:00 +0000 Subject: [PATCH] Fix operators --- vcg/simplex/face/pos.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index c7067286..77a4bbeb 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.18 2005/12/15 10:53:16 corsini +Add constructor which takes as input a face and a vertex + Revision 1.17 2005/10/16 23:30:39 ponchio IsBorder(...) declaration needed. @@ -144,16 +147,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 == ( FaceType const & p ) const { + inline bool operator == ( Pos const & p ) const { return (f==p.f && z==p.z && v==p.v); } /// Operator to compare two half-edge - inline bool operator != ( FaceType const & p ) const { + inline bool operator != ( Pos 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 <= ( FaceType const & p) const { + inline bool operator <= ( Pos const & p) const { return (f!=p.f)?(f