46 template<
class T>
class tmp;
48 bool operator==(
const boundBox&,
const boundBox&);
49 bool operator!=(
const boundBox&,
const boundBox&);
52 Ostream&
operator<<(Ostream&,
const boundBox&);
70 void calculate(
const UList<point>&,
const bool doReduce =
true);
77 static const scalar
great;
109 const bool doReduce =
true 115 template<
unsigned Size>
120 const bool doReduce =
true 150 inline scalar
mag()
const;
153 inline scalar
volume()
const;
156 inline scalar
minDim()
const;
159 inline scalar
maxDim()
const;
162 inline scalar
avgDim()
const;
183 inline bool overlaps(
const point&,
const scalar radiusSqr)
const;
205 template<
unsigned Size>
224 template<
unsigned Size>
boundBox()
Construct null, setting points to zero.
A 1D vector of objects of type <T> with a fixed size <Size>.
const point & min() const
Minimum describing the bounding box.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static const scalar great
The great value used for greatBox and invertedBox.
static faceList faces()
Return faces with correct point order.
scalar maxDim() const
Largest length/height/width dimension.
const point & max() const
Maximum describing the bounding box.
point midpoint() const
The midpoint of the bounding box.
A bounding box defined in terms of the points at its extremities.
static const boundBox greatBox
A very large boundBox: min/max == -/+ VGREAT.
friend bool operator!=(const boundBox &, const boundBox &)
scalar minDim() const
Smallest length/height/width dimension.
scalar mag() const
The magnitude of the bounding box span.
friend Ostream & operator<<(Ostream &, const boundBox &)
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))
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
vector span() const
The bounding box span (from minimum to maximum)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void inflate(const scalar s)
Inflate box by factor*mag(span) in all dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool containsAny(const UList< point > &) const
Contains any of the points? (inside or on edge)
bool containsInside(const point &) const
Contains point? (inside only)
point nearest(const point &) const
Return the nearest point on the boundBox to the supplied point.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- VGREAT.
Ostream & operator<<(Ostream &, const ensightPart &)
bool contiguous< boundBox >()
Data associated with boundBox type are contiguous.
scalar volume() const
The volume of the bound box.
tmp< pointField > points() const
Return corner points in an order corresponding to a 'hex' cell.
A class for managing temporary objects.
scalar avgDim() const
Average length/height/width dimension.
bool operator!=(const particle &, const particle &)
bool contains(const point &) const
Contains point? (inside or on edge)
friend Istream & operator>>(Istream &, boundBox &)
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
friend bool operator==(const boundBox &, const boundBox &)