ENH: additional methods/operators for boundBox (related to #196)
- Constructor for bounding box of a single point. - add(boundBox), add(point) ... -> Extend box to enclose the second box or point(s). Eg, bb.add(pt); vs. bb.min() = Foam::min(bb.min(), pt); bb.max() = Foam::max(bb.max(), pt); Also works with other bounding boxes. Eg, bb.add(bb2); // OR bb += bb2; vs. bb.min() = Foam::min(bb.min(), bb2.min()); bb.max() = Foam::max(bb.max(), bb2.max()); '+=' operator allows the reduction to be used in parallel gather/scatter operations. A global '+' operator is not currently needed. Note: may be useful in the future to have a 'clear()' method that resets to a zero-sized (inverted) box. STYLE: make many bounding box constructors explicit
Showing
- applications/test/boundBox/Test-boundBox.C 54 additions, 3 deletionsapplications/test/boundBox/Test-boundBox.C
- applications/test/wallDist/Test-wallDist.C 2 additions, 2 deletionsapplications/test/wallDist/Test-wallDist.C
- applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C 4 additions, 8 deletions...backgroundMeshDecomposition/backgroundMeshDecomposition.C
- applications/utilities/mesh/manipulation/checkMesh/checkTopology.C 2 additions, 9 deletions...ons/utilities/mesh/manipulation/checkMesh/checkTopology.C
- applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C 2 additions, 5 deletions...arallelProcessing/reconstructParMesh/reconstructParMesh.C
- src/OpenFOAM/meshes/boundBox/boundBox.C 29 additions, 37 deletionssrc/OpenFOAM/meshes/boundBox/boundBox.C
- src/OpenFOAM/meshes/boundBox/boundBox.H 85 additions, 35 deletionssrc/OpenFOAM/meshes/boundBox/boundBox.H
- src/OpenFOAM/meshes/boundBox/boundBoxI.H 69 additions, 4 deletionssrc/OpenFOAM/meshes/boundBox/boundBoxI.H
- src/OpenFOAM/meshes/boundBox/boundBoxTemplates.C 41 additions, 17 deletionssrc/OpenFOAM/meshes/boundBox/boundBoxTemplates.C
- src/OpenFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSearch.C 3 additions, 4 deletions...enFOAM/meshes/primitiveMesh/PatchTools/PatchToolsSearch.C
- src/OpenFOAM/meshes/primitiveMesh/primitiveMeshFindCell.C 2 additions, 3 deletionssrc/OpenFOAM/meshes/primitiveMesh/primitiveMeshFindCell.C
- src/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetPoints.H 4 additions, 5 deletionssrc/OpenFOAM/meshes/primitiveShapes/tetrahedron/tetPoints.H
- src/OpenFOAM/meshes/primitiveShapes/triangle/triPoints.H 4 additions, 5 deletionssrc/OpenFOAM/meshes/primitiveShapes/triangle/triPoints.H
- src/OpenFOAM/meshes/treeBoundBox/treeBoundBox.C 30 additions, 78 deletionssrc/OpenFOAM/meshes/treeBoundBox/treeBoundBox.C
- src/OpenFOAM/meshes/treeBoundBox/treeBoundBox.H 29 additions, 36 deletionssrc/OpenFOAM/meshes/treeBoundBox/treeBoundBox.H
- src/OpenFOAM/meshes/treeBoundBox/treeBoundBoxI.H 12 additions, 7 deletionssrc/OpenFOAM/meshes/treeBoundBox/treeBoundBoxI.H
- src/dynamicMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C 2 additions, 3 deletions...icMesh/motionSmoother/polyMeshGeometry/polyMeshGeometry.C
- src/mesh/snappyHexMesh/shellSurfaces/shellSurfaces.C 2 additions, 14 deletionssrc/mesh/snappyHexMesh/shellSurfaces/shellSurfaces.C
- src/meshTools/AABBTree/AABBTree.C 5 additions, 9 deletionssrc/meshTools/AABBTree/AABBTree.C
- src/meshTools/indexedOctree/treeDataFace.C 2 additions, 15 deletionssrc/meshTools/indexedOctree/treeDataFace.C
Please register or sign in to comment