Go to the documentation of this file.
54 template<
class T>
class tmp;
56 Istream&
operator>>(Istream& is, boundBox& bb);
145 inline bool empty()
const;
148 inline bool valid()
const;
172 inline scalar
mag()
const;
175 inline scalar
volume()
const;
178 inline scalar
minDim()
const;
181 inline scalar
maxDim()
const;
184 inline scalar
avgDim()
const;
192 inline label
nDim()
const;
238 template<
class IntContainer>
242 const IntContainer& indices
271 const scalar radiusSqr
299 template<
class IntContainer>
303 const IntContainer& indices
322 template<
class IntContainer>
326 const IntContainer& indices
void reduce()
Parallel reduction of min/max values.
point midpoint() const
The midpoint (centre) of the bounding box. Identical to centre()
scalar mag() const
The magnitude of the bounding box span.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
1: x-direction (vector component 0)
A class for managing temporary objects.
static const faceList faces
Faces to point addressing, as per a 'hex' cell.
point faceCentre(const direction facei) const
Face centre of given face index.
bool containsAny(const UList< point > &points) const
Contains any of the points? (inside or on edge)
void inflate(const scalar s)
Inflate box by factor*mag(span) in all dimensions.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
2: y-direction (vector component 1)
Istream & operator>>(Istream &, directionInfo &)
const point & max() const
Maximum describing the bounding box.
scalar volume() const
The volume of the bound box.
const point & min() const
Minimum describing the bounding box.
bool intersect(const boundBox &bb)
Intersection (union) with the second box.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
bool overlaps(const boundBox &bb) const
Overlaps/touches boundingBox?
vector span() const
The bounding box span (from minimum to maximum)
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
label nDim() const
Count the number of positive, non-zero dimensions.
scalar maxDim() const
Largest length/height/width dimension.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
friend Istream & operator>>(Istream &is, boundBox &bb)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
point centre() const
The centre (midpoint) of the bounding box.
bool containsInside(const point &pt) const
Contains point? (inside only)
scalar minDim() const
Smallest length/height/width dimension.
boundBox()
Construct without any points - an inverted bounding box.
OBJstream os(runTime.globalPath()/outputName)
point nearest(const point &pt) const
Return the nearest point on the boundBox to the supplied point.
bool empty() const
Bounding box is inverted, contains no points.
directionBit
Bits used for (x/y/z) direction encoding.
A template class to specify if a data type is composed solely of Foam::scalar elements.
void clear()
Clear bounding box and make it an inverted box.
bool contains(const point &pt) const
Contains point? (inside or on edge)
static const boundBox greatBox
A large boundBox: min/max == -/+ ROOTVGREAT.
bool intersects(const plane &pln) const
Does plane intersect this bounding box.
A 1D vector of objects of type <T> with a fixed length <N>.
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.
4: z-direction (vector component 2)
void operator+=(const boundBox &bb)
Extend box to include the second box, as per the add() method.
A bounding box defined in terms of min/max extrema points.
static const FixedList< vector, 6 > faceNormals
The unit normal per face.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
tmp< pointField > points() const
Corner points in an order corresponding to a 'hex' cell.
friend Ostream & operator<<(Ostream &os, const boundBox &bb)
bool valid() const
Bounding box is non-inverted.
A template class to specify that a data type can be considered as being contiguous in memory.
tmp< pointField > faceCentres() const
Face midpoints.
void add(const boundBox &bb)
Extend to include the second box.