80Istream&
operator>>(Istream& is, treeBoundBox& bb);
200 inline scalar
typDim()
const;
282 const point& overallStart,
A 1D vector of objects of type <T> with a fixed length <N>.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
int overlaps
Flag to control which overlap calculations are performed.
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.
point nearest(const point &pt) const
Return the nearest point on the boundBox to the supplied point.
const point & min() const
Minimum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
bool contains(const point &pt) const
Contains point? (inside or on edge)
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.
faceBit
Bits used for face encoding.
@ FRONTBIT
32: z-max, front
@ RIGHTBIT
2: x-max, right
@ BOTTOMBIT
4: y-min, bottom
label distanceCmp(const point &pt, const treeBoundBox &other) const
Compare distance to point with other bounding box.
treeBoundBox extend(Random &rndGen, const scalar s) const
Return slightly wider bounding box.
void searchOrder(const point &pt, FixedList< direction, 8 > &octantOrder) const
Calculates optimal order to look for nearest to point.
static const edgeList edges
Edge to point addressing.
treeBoundBox subBbox(const direction octant) const
Sub-box of given octant. Midpoint calculated.
friend Istream & operator>>(Istream &is, treeBoundBox &bb)
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,.
point corner(const direction octant) const
Corner point of given octant.
direction faceBits(const point &pt) const
Code position of point on bounding box faces.
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
direction posBits(const point &pt) const
Position of point relative to bounding box.
direction subOctant(const point &pt) const
Returns octant number given point and the calculated midpoint.
octantBit
Bits used for octant/point encoding.
@ TOPHALF
2: positive y-direction
@ RIGHTHALF
1: positive x-direction
@ FRONTHALF
4: positive z-direction
scalar typDim() const
Typical dimension length,height,width.
static const faceList faces
Face to point addressing.
treeBoundBox()
Construct without any points - an inverted bounding box.
scalar maxDist(const point &pt) const
Returns distance point to furthest away corner.
tmp< pointField > points() const
Vertex coordinates. In octant coding.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
OBJstream os(runTime.globalPath()/outputName)
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))
bool operator!=(const eddy &a, const eddy &b)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
A template class to specify if a data type is composed solely of Foam::scalar elements.
A template class to specify that a data type can be considered as being contiguous in memory.