mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: meshToMeshMethod: small optimisation in treeBoundBox calc
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user