![]() |
|
Public Member Functions | |
treeBoundBox () | |
Construct null setting points to zero. | |
treeBoundBox (const point &min, const point &max) | |
Construct from components. | |
treeBoundBox (const boundBox &bb) | |
Construct from components. | |
treeBoundBox (const pointField &points) | |
Construct as the bounding box of the given pointField. Local. | |
treeBoundBox (Istream &) | |
Construct from Istream. | |
scalar | minDim () const |
Smallest of length,height,width. | |
scalar | maxDim () const |
Largest of length,height,width. | |
scalar | avgDim () const |
Average of length,height,width. | |
scalar | typDim () const |
Typical dimension length,height,width. | |
vectorList | points () const |
vertex coordinates | |
edgeList | edges () const |
edges expressed in terms of points() | |
point | mid () const |
Calculates midpoint. | |
treeBoundBox | subBbox (const label) const |
Sub box given by octant number. Midpoint calculated. | |
treeBoundBox | subBbox (const point &mid, const label) const |
Sub box given by octant number. Midpoint provided. | |
label | subOctant (const point &sample) const |
Returns octant number given point. Midpoint calculated. | |
label | subOctant (const point &sample, bool onEdge) const |
Returns octant number given point. Midpoint calculated. | |
label | subOctant (const point &mid, const point &sample, bool onEdge) const |
Returns octant number given point. Midpoint provided. | |
label | subOctant (const point &mid, const vector &dir, const point &sample, bool onEdge) const |
Returns octant number given intersection. Midpoint provided. | |
bool | intersects (const treeBoundBox &) const |
Intersects other boundingbox? | |
bool | intersects (const point &, const point &, point &intPt) const |
Intersects segment; set point to intersection position,. | |
bool | contains (const treeBoundBox &bb) const |
fully contains bb | |
bool | contains (const point &) const |
Contains point? (inside or on edge). | |
bool | containsNarrow (const point &) const |
Contains point? (only inside). | |
bool | contains (const vector &dir, const point &) const |
Contains point inside or. | |
label | posBits (const point &) const |
Position of point relative to bb. | |
void | calcExtremities (const point &sample, point &nearest, point &furthest) const |
Calculate nearest and furthest (to sample) vertex coords of. | |
scalar | maxDist (const point &sample) const |
Returns distance sample to furthest away corner. | |
label | distanceCmp (const point &, const treeBoundBox &other) const |
Compare distance to point with other bounding box. | |
Static Public Member Functions | |
label | neighbourFaceBits (const label &) |
Face on which neighbour is. | |
Static Public Attributes | |
treeBoundBox | greatBox |
const label | NOFACE = 0 |
const label | LEFTBIT = 0x1 << 0 |
const label | RIGHTBIT = 0x1 << 1 |
const label | BELOWBIT = 0x1 << 2 |
const label | ABOVEBIT = 0x1 << 3 |
const label | BEHINDBIT = 0x1 << 4 |
const label | INFRONTBIT = 0x1 << 5 |
Friends | |
bool | operator== (const treeBoundBox &, const treeBoundBox &) |
bool | operator!= (const treeBoundBox &, const treeBoundBox &) |
Istream & | operator>> (Istream &, treeBoundBox &) |
|
Construct null setting points to zero.
Definition at line 49 of file treeBoundBoxI.H. References Foam::max(), and Foam::min(). |
Here is the call graph for this function:
|
Construct from components.
Definition at line 56 of file treeBoundBoxI.H. |
|
Construct from components.
Definition at line 63 of file treeBoundBoxI.H. References Foam::label, boundBox::max(), boundBox::min(), Foam::point, Vector::x(), Vector::y(), and Vector::z(). |
Here is the call graph for this function:
|
Construct as the bounding box of the given pointField. Local. processor domain only (no reduce as in boundBox) |
|
Construct from Istream.
|
|
Average of length,height,width.
|
|
Calculate nearest and furthest (to sample) vertex coords of. bounding box |
|
Contains point inside or. on edge and moving in direction dir would cause it to go inside. |
|
Contains point? (inside or on edge).
Reimplemented from boundBox. Definition at line 252 of file treeBoundBoxI.H. |
|
fully contains bb
|
|
Contains point? (only inside).
|
|
Compare distance to point with other bounding box. return: -1 : all vertices of my bounding box are nearer than any of other +1 : all vertices of my bounding box are further away than any of other 0 : none of the above. |
|
edges expressed in terms of points()
|
|
Intersects segment; set point to intersection position,. return true if intersection found. (intPt argument used during calculation even if not intersecting) |
|
Intersects other boundingbox?
Definition at line 246 of file treeBoundBoxI.H. |
|
Largest of length,height,width.
|
|
Returns distance sample to furthest away corner.
|
|
Calculates midpoint.
|
|
Smallest of length,height,width.
|
|
Face on which neighbour is.
|
|
vertex coordinates
|
|
Position of point relative to bb.
|
|
Sub box given by octant number. Midpoint provided.
|
|
Sub box given by octant number. Midpoint calculated.
|
|
Returns octant number given intersection. Midpoint provided. onEdge set if sample on edge of subOctant. If onEdge the direction vector determines which octant to use (acc. to which octant the sample would be if it were moved along dir) Definition at line 187 of file treeBoundBoxI.H. |
|
Returns octant number given point. Midpoint provided. onEdge set if sample on edge of subOctant Definition at line 142 of file treeBoundBoxI.H. |
|
Returns octant number given point. Midpoint calculated. onEdge set if sample on edge of subOctant Definition at line 101 of file treeBoundBoxI.H. |
|
Returns octant number given point. Midpoint calculated.
Definition at line 72 of file treeBoundBoxI.H. |
|
Typical dimension length,height,width.
|
|
|
|
|
|
|
|
Definition at line 85 of file treeBoundBox.H. |
|
Definition at line 86 of file treeBoundBox.H. |
|
Definition at line 84 of file treeBoundBox.H. |
|
Definition at line 78 of file treeBoundBox.H. |
|
Definition at line 87 of file treeBoundBox.H. |
|
Definition at line 82 of file treeBoundBox.H. |
|
Definition at line 81 of file treeBoundBox.H. |
|
Definition at line 83 of file treeBoundBox.H. |