From 97a08796765f89663f264fbf80a51be321b61434 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Sun, 1 May 2016 15:33:34 +0000 Subject: [PATCH] added operator < --- vcg/simplex/face/pos.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index 2fe02e11..fb1495ad 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -124,6 +124,12 @@ public: (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 < ( PosType const & p) const { + if ((*this)==p)return false; + return ((*this)<=p); + } + /// Assignment operator inline PosType & operator = ( const PosType & h ){ f=h.f;