Go to the documentation of this file.
46 template<
class T>
class tmp;
49 Ostream&
operator<<(Ostream&,
const boundBox&);
74 static const scalar
great;
106 const bool doReduce =
true
112 template<
unsigned Size>
117 const bool doReduce =
true
147 inline scalar
mag()
const;
150 inline scalar
volume()
const;
153 inline scalar
minDim()
const;
156 inline scalar
maxDim()
const;
159 inline scalar
avgDim()
const;
180 inline bool overlaps(
const point&,
const scalar radiusSqr)
const;
202 template<
unsigned Size>
221 template<
unsigned Size>
point midpoint() const
The midpoint of the bounding box.
scalar mag() const
The magnitude of the bounding box span.
point min_
Minimum and maximum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
A class for managing temporary objects.
void inflate(const scalar s)
Inflate box by factor*mag(span) in all dimensions.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- VGREAT.
scalar volume() const
The volume of the bound box.
vector span() const
The bounding box span (from minimum to maximum)
friend Istream & operator>>(Istream &, boundBox &)
scalar maxDim() const
Largest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
friend bool operator==(const boundBox &, const boundBox &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool contiguous< boundBox >()
Data associated with boundBox type are contiguous.
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
scalar minDim() const
Smallest length/height/width dimension.
bool containsAny(const UList< point > &) const
Contains any of the points? (inside or on edge)
point nearest(const point &) const
Return the nearest point on the boundBox to the supplied point.
const point & min() const
Minimum describing the bounding box.
Ostream & operator<<(Ostream &, const edgeMesh &)
void calculate(const UList< point > &, const bool doReduce=true)
Calculate the bounding box from the given points.
boundBox()
Construct null, setting points to zero.
static const scalar great
The great value used for greatBox and invertedBox.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static faceList faces()
Return faces with correct point order.
static const boundBox greatBox
A very large boundBox: min/max == -/+ VGREAT.
bool contains(const point &) const
Contains point? (inside or on edge)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T> with a fixed size <Size>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
scalar avgDim() const
Average length/height/width dimension.
Istream & operator>>(Istream &, edgeMesh &)
A bounding box defined in terms of the points at its extremities.
friend bool operator!=(const boundBox &, const boundBox &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
tmp< pointField > points() const
Return corner points in an order corresponding to a 'hex' cell.
friend Ostream & operator<<(Ostream &, const boundBox &)