ENH: meshToMeshMethod: small optimisation in treeBoundBox calc

This commit is contained in:
mattijs
2013-11-12 16:35:43 +00:00
parent b8fa675532
commit 04ad9a8598
2 changed files with 3 additions and 20 deletions

View File

@ -396,10 +396,7 @@ Foam::labelList Foam::tetOverlapVolume::overlappingCells
{
const indexedOctree<treeDataCell>& treeA = fromMesh.cellTree();
treeBoundBox bbB
(
pointField(toMesh.points(), toMesh.cellPoints()[iTo])
);
treeBoundBox bbB(toMesh.points(), toMesh.cellPoints()[iTo]);
return treeA.findBox(bbB);
}