Loading...
Searching...
No Matches
treeDataPrimitivePatch< PatchType >::findNearestOp Class Reference

#include <treeDataPrimitivePatch.H>

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.

Detailed Description

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

Definition at line 102 of file treeDataPrimitivePatch.H.

Constructor & Destructor Documentation

◆ findNearestOp()

template<class PatchType>
findNearestOp ( const indexedOctree< treeDataPrimitivePatch > & tree)

Definition at line 94 of file treeDataPrimitivePatch.C.

References tree(), and treeDataPrimitivePatch< PatchType >::treeDataPrimitivePatch().

Here is the call graph for this function:

Member Function Documentation

◆ operator()() [1/2]

template<class PatchType>
void operator() ( const labelUList & indices,
const point & sample,
scalar & nearestDistSqr,
label & minIndex,
point & nearestPoint ) const

Definition at line 514 of file treeDataPrimitivePatch.C.

◆ operator()() [2/2]

template<class PatchType>
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 536 of file treeDataPrimitivePatch.C.

References Foam::ln(), and NotImplemented.

Here is the call graph for this function:

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