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 91 of file treeDataPrimitivePatch.H.

Constructor & Destructor Documentation

◆ findNearestOp()

Definition at line 72 of file treeDataPrimitivePatch.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 464 of file treeDataPrimitivePatch.C.

References PointHit< PointType >::distance(), f(), Foam::foamVersion::patch, treeDataPrimitivePatch< PatchType >::patch(), 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

Calculates nearest (to line) point in shape.

Returns point and distance (squared)

Definition at line 497 of file treeDataPrimitivePatch.C.

References NotImplemented.

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