From 7e212f1d60ef172bcf73b046482208e2271b1910 Mon Sep 17 00:00:00 2001 From: giorgiomarcias Date: Sat, 15 Nov 2014 17:50:19 +0000 Subject: [PATCH] Function VInd() declared const so that it can be used also with a constant face::Pos. --- vcg/simplex/face/pos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/simplex/face/pos.h b/vcg/simplex/face/pos.h index 9bcd6d9d..891eb863 100644 --- a/vcg/simplex/face/pos.h +++ b/vcg/simplex/face/pos.h @@ -100,7 +100,7 @@ public: // Returns the face index of the vertex inside the face. // Note that this is DIFFERENT from using the z member that denotes the edge index inside the face. // It should holds that Vind != (z+1)%3 && Vind == z || Vind = z+2%3 - int VInd() + int VInd() const { for(int i = 0; i < f->VN(); ++i) if(v==f->V(i)) return i; assert(0);