treeDataPrimitivePatch< PatchType >::findNearestOp Class Reference

Public Member Functions

 findNearestOp (const indexedOctree< treeDataPrimitivePatch > &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
 Calculates nearest (to line) point in shape. More...
 

Detailed Description

template<class PatchType>
class Foam::treeDataPrimitivePatch< PatchType >::findNearestOp

Definition at line 93 of file treeDataPrimitivePatch.H.

Constructor & Destructor Documentation

Definition at line 90 of file treeDataPrimitivePatch.C.

Member Function Documentation

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

Definition at line 501 of file treeDataPrimitivePatch.C.

References forAll, treeDataPrimitivePatch< PatchType >::patch(), and sqr().

Here is the call graph for this function:

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

Calculates nearest (to line) point in shape.

Returns point and distance (squared)

Definition at line 535 of file treeDataPrimitivePatch.C.

References notImplemented.


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