Go to the documentation of this file.
64 #ifndef treeBoundBox_H
65 #define treeBoundBox_H
80 Istream&
operator>>(Istream& is, treeBoundBox& bb);
81 Ostream&
operator<<(Ostream&
os,
const treeBoundBox& bb);
200 inline scalar
typDim()
const;
282 const point& overallStart,
faceBit
Bits used for face encoding.
treeBoundBox extend(Random &rndGen, const scalar s) const
Return slightly wider bounding box.
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))
tmp< pointField > points() const
Vertex coordinates. In octant coding.
A class for managing temporary objects.
Standard boundBox with extra functionality for use in octree.
void calcExtremities(const point &pt, point &nearest, point &furthest) const
Calculate nearest and furthest (to point) vertex coords of.
Istream & operator>>(Istream &, directionInfo &)
static const edgeList edges
Edge to point addressing.
const point & max() const
Maximum describing the bounding box.
treeBoundBox()
Construct without any points - an inverted bounding box.
direction faceBits(const point &pt) const
Code position of point on bounding box faces.
const point & min() const
Minimum describing the bounding box.
treeBoundBox subBbox(const direction octant) const
Sub-box of given octant. Midpoint calculated.
bool overlaps(const boundBox &bb) const
Overlaps/touches boundingBox?
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
point corner(const direction octant) const
Corner point of given octant.
direction posBits(const point &pt) const
Position of point relative to bounding box.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
friend Ostream & operator<<(Ostream &os, const treeBoundBox &bb)
bool intersects(const point &overallStart, const vector &overallVec, const point &start, const point &end, point &pt, direction &ptBits) const
Intersects segment; set point to intersection position and face,.
scalar typDim() const
Typical dimension length,height,width.
static const faceList faces
Face to point addressing.
void searchOrder(const point &pt, FixedList< direction, 8 > &octantOrder) const
Calculates optimal order to look for nearest to point.
OBJstream os(runTime.globalPath()/outputName)
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
point nearest(const point &pt) const
Return the nearest point on the boundBox to the supplied point.
A template class to specify if a data type is composed solely of Foam::scalar elements.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
bool contains(const point &pt) const
Contains point? (inside or on edge)
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
scalar maxDist(const point &pt) const
Returns distance point to furthest away corner.
direction subOctant(const point &pt) const
Returns octant number given point and the calculated midpoint.
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 length <N>.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A bounding box defined in terms of min/max extrema points.
label distanceCmp(const point &pt, const treeBoundBox &other) const
Compare distance to point with other bounding box.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
octantBit
Bits used for octant/point encoding.
A template class to specify that a data type can be considered as being contiguous in memory.
friend Istream & operator>>(Istream &is, treeBoundBox &bb)