mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -41,10 +41,7 @@ Foam::treeBoundBox::treeBoundBox
|
||||
if (points.empty())
|
||||
{
|
||||
WarningInFunction
|
||||
<< "cannot find bounding box for zero-sized pointField, "
|
||||
<< "returning zero" << endl;
|
||||
|
||||
return;
|
||||
<< "No bounding box for zero-sized pointField" << nl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user