mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: creating a bounding box without points yields an inverted box
- The code create a box with a (0,0,0) point. The new definition is more logical and makes it very easy to grow the bounding box to include new points. It also simplifies much of the logic in the constructors. - Use ROOTVGREAT instead of VGREAT for sizing greatBox and invertedBox. Avoids some overflow issues reported by Mattijs (thus GREAT has been used in treeBoundBox), but might still need further revision.
This commit is contained in:
@ -891,11 +891,11 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
||||
|
||||
// Find bounding box for all triangles on new distribution.
|
||||
|
||||
// Initialise to inverted box (GREAT, -GREAT)
|
||||
// Initialise to inverted box
|
||||
List<List<treeBoundBox>> bbs(Pstream::nProcs());
|
||||
forAll(bbs, procI)
|
||||
{
|
||||
bbs[procI].setSize(1, treeBoundBox::invertedBox);
|
||||
bbs[procI].setSize(1, treeBoundBox(boundBox::invertedBox));
|
||||
}
|
||||
|
||||
forAll(s, triI)
|
||||
|
||||
Reference in New Issue
Block a user