ENH: minor consistency improvements for bounding box

- a valid() method (same as !empty() call) for consistency with other
  containers and data types

- a centre() method (same as midpoint() method) for consistency with
  other OpenFOAM geometric entities
This commit is contained in:
Mark Olesen
2019-01-09 09:32:23 +01:00
parent a0a7da2edd
commit 2067014079
26 changed files with 123 additions and 98 deletions

View File

@ -25,7 +25,7 @@ Class
Foam::treeBoundBox
Description
Standard boundBox + extra functionality for use in octree.
Standard boundBox with extra functionality for use in octree.
Numbering of corner points is according to octant numbering.
@ -153,7 +153,7 @@ public:
// Constructors
//- Construct null setting points to zero
//- Construct without any points - an inverted bounding box
inline treeBoundBox();
//- Construct from a boundBox