treeDataEdge::findNearestOp Class Reference

Public Member Functions

 findNearestOp (const indexedOctree< treeDataEdge > &tree)
 
void operator() (const labelUList &indices, const point &sample, scalar &nearestDistSqr, label &minIndex, point &nearestPoint) const
 
void operator() (const labelUList &indices, const linePointRef &ln, treeBoundBox &tightest, label &minIndex, point &linePoint, point &nearestPoint) const
 

Detailed Description

Definition at line 93 of file treeDataEdge.H.

Constructor & Destructor Documentation

◆ findNearestOp()

Definition at line 101 of file treeDataEdge.C.

Member Function Documentation

◆ operator()() [1/2]

void operator() ( const labelUList indices,
const point sample,
scalar &  nearestDistSqr,
label &  minIndex,
point nearestPoint 
) const

Definition at line 177 of file treeDataEdge.C.

References PointHit< PointType >::distance(), e, treeDataEdge::edgeLabels(), treeDataEdge::edges(), treeDataEdge::points(), PointHit< PointType >::rawPoint(), and Foam::sqr().

Here is the call graph for this function:

◆ operator()() [2/2]

void operator() ( const labelUList indices,
const linePointRef ln,
treeBoundBox tightest,
label &  minIndex,
point linePoint,
point nearestPoint 
) const

Definition at line 207 of file treeDataEdge.C.

References e, treeDataEdge::edgeLabels(), treeDataEdge::edges(), Foam::ln(), Foam::magSqr(), Foam::max(), VectorSpace< Form, Cmpt, Ncmpts >::max, Foam::min(), VectorSpace< Form, Cmpt, Ncmpts >::min, treeDataEdge::points(), Foam::sqr(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().

Here is the call graph for this function:

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