ENH: use simpler constructor forms for treeData types

This commit is contained in:
Mark Olesen
2022-11-14 16:28:12 +01:00
committed by Andrew Heather
parent fc0b980333
commit 98598ba0bb
17 changed files with 68 additions and 155 deletions

View File

@ -90,7 +90,7 @@ void Foam::meshToMesh0::calcAddressing()
indexedOctree<treeDataCell> cellTree
(
treeDataCell(false, fromMesh_, polyMesh::CELL_TETS),
treeDataCell(fromMesh_, polyMesh::CELL_TETS),
shiftedBb, // overall bounding box
8, // maxLevel
10, // leafsize
@ -162,7 +162,7 @@ void Foam::meshToMesh0::calcAddressing()
// is not as big as all boundary faces
indexedOctree<treeDataFace> faceTree
(
treeDataFace(false, fromPatch),
treeDataFace(fromPatch),
shiftedBb, // overall search domain
12, // maxLevel
10, // leafsize

View File

@ -93,12 +93,8 @@ void Foam::patchProbes::findElements(const fvMesh& mesh)
const indexedOctree<treeDataFace> boundaryTree
(
treeDataFace // all information needed to search faces
(
false, // do not cache bb
mesh,
bndFaces // patch faces only
),
treeDataFace(mesh, bndFaces), // patch faces only
overallBb, // overall search domain
8, // maxLevel
10, // leafsize

View File

@ -94,12 +94,8 @@ void Foam::patchCloudSet::calcSamples
indexedOctree<treeDataFace> patchTree
(
treeDataFace // all information needed to search faces
(
false, // do not cache bb
mesh(),
patchFaces // boundary faces only
),
treeDataFace(mesh(), patchFaces), // boundary faces only
bb, // overall search domain
8, // maxLevel
10, // leafsize

View File

@ -114,12 +114,8 @@ void Foam::patchSeedSet::calcSamples
indexedOctree<treeDataFace> boundaryTree
(
treeDataFace // all information needed to search faces
(
false, // do not cache bb
mesh(),
patchFaces // boundary faces only
),
treeDataFace(mesh(), patchFaces), // boundary faces only
patchBb, // overall search domain
8, // maxLevel
10, // leafsize