Iterates over intersections of line with octree leaf elements. More...
#include <meshTools/octreeLine.H>
Iterates over intersections of line with octree leaf elements.
octree<octreeDataFace> oc( .. ); octreeLine<octreeDataFace> lineSearch(oc, pStart, pEnd); while (lineSearch.getIntersection()) { const point& pt = lineSearch.hitInfo().hitPoint(); .. }
Definition at line 71 of file octreeLine.H.
Public Member Functions | |
octreeLine (const octree< Type > &tree, const point &startPoint, const point &endPoint) | |
Construct from components.
| |
~octreeLine () | |
const octree< Type > & | tree () const |
const point & | leafExitPoint () const |
const point & | endPoint () const |
const point & | startPoint () const |
const treeLeaf< Type > * | currentLeaf () const |
const List< pointHitSort > & | sortedIntersections () const |
label | hitIndex () const |
const pointHit & | hitInfo () const |
bool | getIntersection () |
go to next intersection. Return false if no intersections.
|
octreeLine | ( | const octree< Type > & | tree, |
const point & | startPoint, | ||
const point & | endPoint | ||
) |
Construct from components.
Definition at line 132 of file octreeLine.C.
~octreeLine | ( | ) |
Definition at line 153 of file octreeLine.C.
const octree<Type>& tree | ( | ) | const [inline]
|
Definition at line 133 of file octreeLine.H.
const point& leafExitPoint | ( | ) | const [inline]
|
Definition at line 138 of file octreeLine.H.
const point& endPoint | ( | ) | const [inline]
|
Definition at line 143 of file octreeLine.H.
const point& startPoint | ( | ) | const [inline]
|
Definition at line 148 of file octreeLine.H.
const treeLeaf<Type>* currentLeaf | ( | ) | const [inline]
|
Definition at line 153 of file octreeLine.H.
const List<pointHitSort>& sortedIntersections | ( | ) | const [inline]
|
Definition at line 158 of file octreeLine.H.
label hitIndex | ( | ) | const [inline]
|
Definition at line 163 of file octreeLine.H.
const pointHit& hitInfo | ( | ) | const [inline]
|
Definition at line 168 of file octreeLine.H.
bool getIntersection | ( | ) |
go to next intersection. Return false if no intersections.
Definition at line 160 of file octreeLine.C.