33 return dict.found(
"box") ||
dict.found(
"min") ||
dict.found(
"max");
64 if (haveBox && !haveMinMax)
70 if (!haveBox && haveMinMax)
78 << (haveBox ?
"both" :
"neither")
79 <<
" of keywords box "
80 << (haveBox ?
"and" :
"or")
81 <<
" min/max defined in dictionary"
114 return 0.5 * (max_ + min_);
120 return (max_ - min_);
158 bb.max_.
x() >= min_.x() && bb.min_.
x() <= max_.x()
159 && bb.max_.
y() >= min_.y() && bb.min_.
y() <= max_.y()
160 && bb.max_.
z() >= min_.z() && bb.min_.
z() <= max_.z()
168 const scalar radiusSqr
177 scalar d0 = min_[dir] - centre[dir];
178 scalar d1 = max_[dir] - centre[dir];
180 if ((d0 > 0) != (d1 > 0))
194 if (distSqr > radiusSqr)
208 pt.
x() >= min_.x() && pt.
x() <= max_.x()
209 && pt.
y() >= min_.y() && pt.
y() <= max_.y()
210 && pt.
z() >= min_.z() && pt.
z() <= max_.z()
218 return contains(bb.
min()) && contains(bb.
max());
226 pt.
x() > min_.x() && pt.
x() < max_.x()
227 && pt.
y() > min_.y() && pt.
y() < max_.y()
228 && pt.
z() > min_.z() && pt.
z() < max_.z()
237 return (a.min_ ==
b.min_) && (a.max_ ==
b.max_);
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const direction nComponents
Number of components in this vector space.
A bounding box defined in terms of the points at its extremities.
static bool found(const dictionary &dict)
Does the dictionary have a bound box specified in it?
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
scalar volume() const
The volume of the bound box.
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
bool contains(const point &) const
Contains point? (inside or on edge)
scalar minDim() const
Smallest length/height/width dimension.
scalar mag() const
The magnitude of the bounding box span.
scalar avgDim() const
Average length/height/width dimension.
boundBox()
Construct null, setting points to zero.
point midpoint() const
The midpoint of the bounding box.
vector span() const
The bounding box span (from minimum to maximum)
scalar maxDim() const
Largest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
const fileName & name() const
Return the dictionary name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool operator!=(const particle &, const particle &)
Istream & operator>>(Istream &, pointEdgeDist &)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Cmpt cmptProduct(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
const dimensionSet & dimLength
void cmptMax(Field< typename Field< Type >::cmptType > &res, const UList< Type > &f)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void cmptMin(Field< typename Field< Type >::cmptType > &res, const UList< Type > &f)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh, PrimitiveField >::cmptType, GeoMesh, Field >> cmptAv(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)