57 #ifndef treeBoundBox_H 58 #define treeBoundBox_H 77 bool operator==(
const treeBoundBox&,
const treeBoundBox&);
78 bool operator!=(
const treeBoundBox&,
const treeBoundBox&);
80 Istream&
operator>>(Istream& is, treeBoundBox&);
81 Ostream&
operator<<(Ostream& os,
const treeBoundBox&);
106 static const scalar
great;
198 template<
unsigned Size>
215 inline scalar
typDim()
const;
297 const point& overallStart,
static const FixedList< vector, 6 > faceNormals
Per face the unit normal.
scalar maxDist(const point &) const
Returns distance point to furthest away corner.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void calcExtremities(const point &pt, point &nearest, point &furthest) const
Calculate nearest and furthest (to point) vertex coords of.
A 1D vector of objects of type <T> with a fixed size <Size>.
const point & min() const
Minimum describing the bounding box.
static const treeBoundBox greatBox
As per boundBox::greatBox, but with GREAT instead of VGREAT.
bool contiguous< treeBoundBox >()
Data associated with treeBoundBox type are contiguous.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static faceList faces()
Return faces with correct point order.
treeBoundBox extend(Random &, const scalar s) const
Return slightly wider bounding box.
const point & max() const
Maximum describing the bounding box.
A bounding box defined in terms of the points at its extremities.
direction faceBits(const point &) const
Code position of point on bounding box faces.
friend Istream & operator>>(Istream &is, treeBoundBox &)
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,.
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))
direction posBits(const point &) const
Position of point relative to bounding box.
friend bool operator==(const treeBoundBox &, const treeBoundBox &)
scalar typDim() const
Typical dimension length,height,width.
void searchOrder(const point &pt, FixedList< direction, 8 > &octantOrder) const
Calculates optimal order to look for nearest to point.
treeBoundBox()
Construct null setting points to zero.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Istream & operator>>(Istream &, directionInfo &)
direction subOctant(const point &pt) const
Returns octant number given point and the calculated midpoint.
static const edgeList edges
Edge to point addressing.
faceBit
Bits used for face coding.
friend bool operator!=(const treeBoundBox &, const treeBoundBox &)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Simple random number generator.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label distanceCmp(const point &, const treeBoundBox &other) const
Compare distance to point with other bounding box.
octantBit
Bits used for octant/point coding.
bool contains(const vector &dir, const point &) const
Contains point (inside or on edge) and moving in direction.
point nearest(const point &) const
Return the nearest point on the boundBox to the supplied point.
point corner(const direction) const
Corner point given octant.
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
tmp< pointField > points() const
Vertex coordinates. In octant coding.
Ostream & operator<<(Ostream &, const ensightPart &)
static const treeBoundBox invertedBox
As per boundBox::invertedBox, but with GREAT instead of VGREAT.
friend Ostream & operator<<(Ostream &os, const treeBoundBox &)
Standard boundBox + extra functionality for use in octree.
bool contiguous< boundBox >()
Data associated with boundBox type are contiguous.
A class for managing temporary objects.
treeBoundBox subBbox(const direction) const
Sub box given by octant number. Midpoint calculated.
bool operator!=(const particle &, const particle &)
bool contains(const point &) const
Contains point? (inside or on edge)
bool overlaps(const boundBox &) const
Overlaps/touches boundingBox?
static const scalar great
The great value used for greatBox and invertedBox.