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... | |
Private Attributes | |
const indexedOctree< treeDataPrimitivePatch > & | tree_ |
Definition at line 92 of file treeDataPrimitivePatch.H.
findNearestOp | ( | const indexedOctree< treeDataPrimitivePatch > & | tree | ) |
Definition at line 90 of file treeDataPrimitivePatch.C.
void operator() | ( | const labelUList & | indices, |
const point & | sample, | ||
scalar & | nearestDistSqr, | ||
label & | minIndex, | ||
point & | nearestPoint | ||
) | const |
Definition at line 497 of file treeDataPrimitivePatch.C.
References PointHit::distance(), f(), forAll, treeDataPrimitivePatch< PatchType >::patch(), points, PointHit::rawPoint(), and Foam::sqr().
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 531 of file treeDataPrimitivePatch.C.
References NotImplemented.
|
private |
Definition at line 94 of file treeDataPrimitivePatch.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.