mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-18 10:34:41 +00:00
avoiding to test if a face intersects with itself
This commit is contained in:
parent
ac493c8f42
commit
ca1a7dfdab
@ -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;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user