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.
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
point nearest(const point &) const
Return the nearest point on the boundBox to the supplied point.
A 1D vector of objects of type <T> with a fixed size <Size>.
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.
bool contains(const point &) const
Contains point? (inside or on edge)
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 avgDim() const
Average length/height/width dimension.
tmp< pointField > points() const
Return corner points in an order corresponding to a 'hex' cell.
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 &)
scalar mag() const
The magnitude of the bounding box span.
point midpoint() const
The midpoint of the bounding box.
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...
const point & max() const
Maximum describing the bounding box.
static const boundBox invertedBox
A very large inverted boundBox: min/max == +/- vGreat.
Ostream & operator<<(Ostream &, const ensightPart &)
vector span() const
The bounding box span (from minimum to maximum)
scalar volume() const
The volume of the bound box.
bool contiguous< boundBox >()
Data associated with boundBox type are contiguous.
const point & min() const
Minimum describing the bounding box.
scalar maxDim() const
Largest length/height/width dimension.
A class for managing temporary objects.
bool operator!=(const particle &, const particle &)
friend Istream & operator>>(Istream &, boundBox &)
scalar minDim() const
Smallest length/height/width dimension.
bool containsInside(const point &) const
Contains point? (inside only)
friend bool operator==(const boundBox &, const boundBox &)
bool containsAny(const UList< point > &) const
Contains any of the points? (inside or on edge)