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(); const indexedOctree<treeDataCell>& treeA = fromMesh.cellTree();
treeBoundBox bbB treeBoundBox bbB(toMesh.points(), toMesh.cellPoints()[iTo]);
(
pointField(toMesh.points(), toMesh.cellPoints()[iTo])
);
return treeA.findBox(bbB); return treeA.findBox(bbB);
} }

View File

@ -84,14 +84,7 @@ bool Foam::meshToMeshMethod::intersect
tetOverlapVolume overlapEngine; tetOverlapVolume overlapEngine;
treeBoundBox bbTgtCell treeBoundBox bbTgtCell(tgt_.points(), tgt_.cellPoints()[tgtCellI]);
(
pointField
(
tgt_.points(),
tgt_.cellPoints()[tgtCellI]
)
);
return overlapEngine.cellCellOverlapMinDecomp return overlapEngine.cellCellOverlapMinDecomp
( (
@ -113,14 +106,7 @@ Foam::scalar Foam::meshToMeshMethod::interVol
{ {
tetOverlapVolume overlapEngine; tetOverlapVolume overlapEngine;
treeBoundBox bbTgtCell treeBoundBox bbTgtCell(tgt_.points(), tgt_.cellPoints()[tgtCellI]);
(
pointField
(
tgt_.points(),
tgt_.cellPoints()[tgtCellI]
)
);
scalar vol = overlapEngine.cellCellOverlapVolumeMinDecomp scalar vol = overlapEngine.cellCellOverlapVolumeMinDecomp
( (