|
|
|
treeBoundBox Class ReferenceStandard boundBox + extra functionality for use in octree. More...
Inheritance diagram for treeBoundBox:
![]()
Collaboration diagram for treeBoundBox:
![]()
Detailed DescriptionStandard boundBox + extra functionality for use in octree.Numbering of corner points is according to octant numbering. On the back plane (z=0):
Y
^
|
+--------+
|2 3|
| |
| |
| |
|0 1|
+--------+->X
For the front plane add 4 to the point labels.
Definition at line 70 of file treeBoundBox.H. Member Enumeration Documentation
Bits used for octant/point coding. Every octant/corner point is the combination of three faces. Definition at line 97 of file treeBoundBox.H.
Constructor & Destructor Documentation
Construct as the bounding box of the given pointField. Local processor domain only (no reduce as in boundBox) Definition at line 107 of file treeBoundBox.C.
Construct as subset of points. Local processor domain only (no reduce as in boundBox) Definition at line 135 of file treeBoundBox.C. References boundBox::max(), Foam::max(), boundBox::min(), and Foam::min().
Here is the call graph for this function:
![]()
Construct from Istream.
Definition at line 166 of file treeBoundBox.C. References boundBox::max(), Foam::max(), boundBox::min(), and Foam::min().
Here is the call graph for this function:
![]()
Member Function Documentation
Corner point given octant.
Definition at line 49 of file treeBoundBoxI.H. References boundBox::avgDim(). Referenced by treeBoundBox::subBbox().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Sub box given by octant number. Midpoint calculated.
Definition at line 186 of file treeBoundBox.C. References treeBoundBox::corner(). Referenced by treeBoundBox::subBbox().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Sub box given by octant number. Midpoint provided.
Definition at line 194 of file treeBoundBox.C. References boundBox::midpoint(), and treeBoundBox::subBbox().
Here is the call graph for this function:
![]()
Returns octant number given point and the calculated midpoint.
Definition at line 61 of file treeBoundBoxI.H. Referenced by treeBoundBox::subOctant().
Here is the caller graph for this function:
![]()
Returns octant number given point and midpoint.
Definition at line 70 of file treeBoundBoxI.H. References boundBox::midpoint(), and treeBoundBox::subOctant().
Here is the call graph for this function:
![]()
Returns octant number given point and the calculated midpoint. onEdge set if the point is on edge of subOctant Definition at line 99 of file treeBoundBoxI.H.
Returns octant number given point and midpoint. onEdge set if the point is on edge of subOctant Definition at line 111 of file treeBoundBoxI.H. References boundBox::midpoint(), and treeBoundBox::subOctant().
Here is the call graph for this function:
![]()
Returns octant number given intersection and midpoint. onEdge set if the point is on edge of subOctant If onEdge, the direction vector determines which octant to use (acc. to which octant the point would be if it were moved along dir) Definition at line 156 of file treeBoundBoxI.H. Calculates optimal order to look for nearest to point. First will be the octant containing the point, second the octant with boundary nearest to the point etc. Definition at line 212 of file treeBoundBoxI.H. Referenced by indexedOctree< Type >::findNearest().
Here is the caller graph for this function:
![]()
Overlaps other boundingbox?
Definition at line 303 of file treeBoundBoxI.H. Referenced by treeBoundBox::contains(), octreeDataEdges::contains(), octreeDataCell::contains(), octreeDataFaceList::contains(), and treeLeaf< Type >::findNearest().
Here is the caller graph for this function:
![]()
Intersects segment; set point to intersection position and face,. return true if intersection found. (pt argument used during calculation even if not intersecting). Calculates intersections from outside supplied vector (overallStart, overallVec). This is so when e.g. tracking through lots of consecutive boxes (typical octree) we're not accumulating truncation errors. Set to start, (end-start) if not used. Definition at line 302 of file treeBoundBox.C. References treeBoundBox::BACKBIT, treeBoundBox::BOTTOMBIT, treeBoundBox::faceBits(), treeBoundBox::FRONTBIT, treeBoundBox::LEFTBIT, Foam::mag(), boundBox::max(), boundBox::min(), treeBoundBox::posBits(), treeBoundBox::RIGHTBIT, and treeBoundBox::TOPBIT. Referenced by treeBoundBox::contains().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() Like above but does not return faces point is on.
Definition at line 429 of file treeBoundBox.C. References boundBox::max().
Here is the call graph for this function:
![]()
fully contains other boundingBox?
Definition at line 441 of file treeBoundBox.C. References treeBoundBox::intersects(). Referenced by treeBoundBox::contains(), octreeDataPoint::contains(), treeBoundBox::extend(), and treeDataPoint::findNearest().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Contains point? (inside or on edge).
Reimplemented from boundBox. Definition at line 309 of file treeBoundBoxI.H. References treeBoundBox::overlaps().
Here is the call graph for this function:
![]() Contains point (inside or on edge) and moving in direction. dir would cause it to go inside. Definition at line 447 of file treeBoundBox.C. References treeBoundBox::contains(), boundBox::max(), and boundBox::min().
Here is the call graph for this function:
![]()
Code position of pt on bounding box faces.
Definition at line 487 of file treeBoundBox.C. Referenced by treeBoundBox::intersects().
Here is the caller graph for this function:
![]()
Position of point relative to bounding box.
Definition at line 521 of file treeBoundBox.C. References treeBoundBox::FRONTBIT. Referenced by treeBoundBox::intersects().
Here is the caller graph for this function:
![]() Calculate nearest and furthest (to point) vertex coords of. bounding box Definition at line 558 of file treeBoundBox.C.
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. Definition at line 618 of file treeBoundBox.C.
Return slightly wider bounding box. Extends all dimensions with s*span*Randomscalar01() and guarantees in any direction s*mag(span) minimum width Definition at line 317 of file treeBoundBoxI.H. References treeBoundBox::contains().
Here is the call graph for this function:
![]()
Friends And Related Function Documentation
Member Data Documentation
The great value used for greatBox and invertedBox.
Reimplemented from boundBox. Definition at line 85 of file treeBoundBox.H.
As per boundBox::greatBox, but with GREAT instead of VGREAT.
Reimplemented from boundBox. Definition at line 88 of file treeBoundBox.H.
As per boundBox::invertedBox, but with GREAT instead of VGREAT.
Reimplemented from boundBox. Definition at line 91 of file treeBoundBox.H.
The documentation for this class was generated from the following files:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||