FreeFOAM The Cross-Platform CFD Toolkit
octreeLine< Type > Class Template Reference

Iterates over intersections of line with octree leaf elements. More...

#include <meshTools/octreeLine.H>


Detailed Description

template<class Type>
class Foam::octreeLine< Type >

Iterates over intersections of line with octree leaf elements.

Used as in

octree<octreeDataFace> oc( .. );
octreeLine<octreeDataFace> lineSearch(oc, pStart, pEnd);
while (lineSearch.getIntersection())
{
const point& pt = lineSearch.hitInfo().hitPoint();
..
}
Source files

Definition at line 71 of file octreeLine.H.

List of all members.

Public Member Functions

 octreeLine (const octree< Type > &tree, const point &startPoint, const point &endPoint)
 Construct from components.
 ~octreeLine ()
const octree< Type > & tree () const
const pointleafExitPoint () const
const pointendPoint () const
const pointstartPoint () const
const treeLeaf< Type > * currentLeaf () const
const List< pointHitSort > & sortedIntersections () const
label hitIndex () const
const pointHithitInfo () const
bool getIntersection ()
 go to next intersection. Return false if no intersections.

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: