76 (octant & RIGHTHALF) ?
max().
x() :
min().
x(),
77 (octant & TOPHALF) ?
max().
y() :
min().
y(),
78 (octant & FRONTHALF) ?
max().z() :
min().z()
86 return subOctant(centre(), pt);
100 if (pt.
x() > mid.
x())
105 if (pt.
y() > mid.
y())
110 if (pt.
z() > mid.
z())
127 return subOctant(centre(), pt, onEdge);
143 if (pt.
x() > mid.
x())
147 else if (pt.
x() == mid.
x())
152 if (pt.
y() > mid.
y())
156 else if (pt.
y() == mid.
y())
161 if (pt.
z() > mid.
z())
165 else if (pt.
z() == mid.
z())
189 if (pt.
x() > mid.
x())
193 else if (pt.
x() == mid.
x())
202 if (pt.
y() > mid.
y())
206 else if (pt.
y() == mid.
y())
215 if (pt.
z() > mid.
z())
219 else if (pt.
z() == mid.
z())
240 vector dist = centre() - pt;
266 if (dist.
x() < dist.
y())
268 if (dist.
y() < dist.
z())
274 else if (dist.
z() < dist.
x())
289 if (dist.
z() < dist.
y())
295 else if (dist.
x() < dist.
z())
310 octantOrder[0] = octant;
312 octantOrder[1] = octant ^
min;
313 octantOrder[2] = octant ^ mid;
314 octantOrder[3] = octant ^
max;
316 octantOrder[4] = octantOrder[1] ^ mid;
317 octantOrder[5] = octantOrder[1] ^
max;
318 octantOrder[6] = octantOrder[2] ^
max;
320 octantOrder[7] = octantOrder[4] ^
max;
339 newSpan[dir] =
Foam::max(newSpan[dir], minSpan);
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)....
Type sample01()
Return a sample whose components lie in the range [0,1].
const Cmpt & z() const
Access to the vector z component.
const Cmpt & y() const
Access to the vector y component.
const Cmpt & x() const
Access to the vector x component.
A bounding box defined in terms of min/max extrema points.
const point & min() const
Minimum describing the bounding box.
const point & max() const
Maximum describing the bounding box.
vector span() const
The bounding box span (from minimum to maximum)
static constexpr direction nComponents
Number of components in bool is 1.
Standard boundBox with extra functionality for use in octree.
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.
point corner(const direction octant) const
Corner point of given octant.
direction subOctant(const point &pt) const
Returns octant number given point and the calculated midpoint.
@ TOPHALF
2: positive y-direction
@ RIGHTHALF
1: positive x-direction
@ FRONTHALF
4: positive z-direction
scalar typDim() const
Typical dimension length,height,width.
treeBoundBox()
Construct without any points - an inverted 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))
bool operator!=(const eddy &a, const eddy &b)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
vector point
Point is a vector.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)