const access to flags -> cFlags()

This commit is contained in:
Paolo Cignoni 2012-11-07 22:53:41 +00:00
parent c655072b93
commit 26ee5e5246
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ namespace vcg {
p = q - t*d; // p is the projection of q on the face plane
// Now Choose the best plane and test to see if p is inside the triangle
switch( f.Flags() & (FaceType::NORMX|FaceType::NORMY|FaceType::NORMZ) )
switch( f.cFlags() & (FaceType::NORMX|FaceType::NORMY|FaceType::NORMZ) )
{
case FaceType::NORMX:
b0 = f.cEdge(1)[1]*(p[2] - f.cP(1)[2]) - f.cEdge(1)[2]*(p[1] - f.cP(1)[1]);