boundbox intersect renaming

This commit is contained in:
mattijs
2008-08-28 15:50:11 +01:00
parent 4dc1c78a28
commit 212a70a17b
18 changed files with 86 additions and 46 deletions

View File

@ -284,13 +284,13 @@ bool Foam::treeDataTriSurface::overlaps
triBb.max() = max(triBb.max(), p2);
//- For testing: robust one
//return cubeBb.intersects(triBb);
//return cubeBb.overlaps(triBb);
//- Exact test of triangle intersecting bb
// Quick rejection. If whole bounding box of tri is outside cubeBb then
// there will be no intersection.
if (!cubeBb.intersects(triBb))
if (!cubeBb.overlaps(triBb))
{
return false;
}