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