diff --git a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C index cdb041ce35..8b37f70fe4 100644 --- a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C +++ b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C @@ -62,7 +62,7 @@ void writeProcStats // Determine surface bounding boxes, faces, points List surfBb(Pstream::nProcs()); { - surfBb[Pstream::myProcNo()] = boundBox(s.points(), false); + surfBb[Pstream::myProcNo()] = treeBoundBox(s.points()); Pstream::gatherList(surfBb); Pstream::scatterList(surfBb); } diff --git a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C index bd5729a1b3..bda334cc51 100644 --- a/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C +++ b/src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C @@ -1858,7 +1858,7 @@ void Foam::meshRefinement::distribute(const mapDistributePolyMesh& map) // Get local mesh bounding box. Single box for now. List meshBb(1); treeBoundBox& bb = meshBb[0]; - bb = boundBox(mesh_.points(), false); + bb = treeBoundBox(mesh_.points()); bb = bb.extend(rndGen, 1E-4); // Distribute all geometry (so refinementSurfaces and shellSurfaces) diff --git a/src/meshTools/indexedOctree/treeDataTriSurface.C b/src/meshTools/indexedOctree/treeDataTriSurface.C index ea519291e3..b4ec2af89f 100644 --- a/src/meshTools/indexedOctree/treeDataTriSurface.C +++ b/src/meshTools/indexedOctree/treeDataTriSurface.C @@ -276,7 +276,7 @@ bool Foam::treeDataTriSurface::overlaps const point& p1 = points[f[1]]; const point& p2 = points[f[2]]; - boundBox triBb(p0, p0); + treeBoundBox triBb(p0, p0); triBb.min() = min(triBb.min(), p1); triBb.min() = min(triBb.min(), p2); diff --git a/src/meshTools/searchableSurface/distributedTriSurfaceMesh.C b/src/meshTools/searchableSurface/distributedTriSurfaceMesh.C index 033d6a0a86..c7ef4d5d94 100644 --- a/src/meshTools/searchableSurface/distributedTriSurfaceMesh.C +++ b/src/meshTools/searchableSurface/distributedTriSurfaceMesh.C @@ -957,7 +957,7 @@ bool Foam::distributedTriSurfaceMesh::overlaps { const treeBoundBox& bb = bbs[bbI]; - boundBox triBb(p0, p0); + treeBoundBox triBb(p0, p0); triBb.min() = min(triBb.min(), p1); triBb.min() = min(triBb.min(), p2); diff --git a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C index 1a1f2baf1d..63969e0dd5 100644 --- a/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C +++ b/src/meshTools/triSurface/surfaceFeatures/surfaceFeatures.C @@ -757,9 +757,11 @@ Foam::Map Foam::surfaceFeatures::nearestSamples ) const { // Build tree out of all samples. + treeBoundBox bb(samples); + octree ppTree ( - treeBoundBox(samples), // overall search domain + bb, // overall search domain octreeDataPoint(samples), // all information needed to do checks 1, // min levels 20.0, // maximum ratio of cubes v.s. cells @@ -858,9 +860,11 @@ Foam::Map Foam::surfaceFeatures::nearestSamples vector span(maxSearch, maxSearch, maxSearch); // octree.shapes holds reference! + treeBoundBox bb(samples); + octree ppTree ( - treeBoundBox(samples), // overall search domain + bb, // overall search domain octreeDataPoint(samples), // all information needed to do checks 1, // min levels 20.0, // maximum ratio of cubes v.s. cells