avoiding to test if a face intersects with itself

This commit is contained in:
Guido Ranzuglia granzuglia 2010-05-05 09:04:43 +00:00
parent ac493c8f42
commit ca1a7dfdab

View File

@ -513,9 +513,13 @@ public:
typename std::vector<FaceType*>::iterator fib;
for(fib=inBox.begin();fib!=inBox.end();++fib)
if(vcg::tri::Clean<MESH>::TestIntersection( *fib, f ))
return true;
{
if (f != *fib)
{
if(vcg::tri::Clean<MESH>::TestIntersection( *fib, f ))
return true;
}
}
return false;
};