Function VInd() declared const so that it can be used also with a constant face::Pos.

This commit is contained in:
giorgiomarcias 2014-11-15 17:50:19 +00:00
parent 2b2b828b43
commit 7e212f1d60
1 changed files with 1 additions and 1 deletions

View File

@ -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);