Go to the documentation of this file.
7 template<
class PatchType>
22 excludeIndices_(excludeIndices)
30 scalar& nearestDistSqr,
42 const label index = indices[i];
44 if (!excludeIndices_.
found(index))
46 const typename PatchType::FaceType&
f =
patch[index];
51 if (distSqr < nearestDistSqr)
53 nearestDistSqr = distSqr;
const PatchType & patch() const
Return access to the underlying patch.
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
scalar distance() const noexcept
Return distance to hit.
const Type & shapes() const
Reference to shape.
#define forAll(list, i)
Loop across all elements in list.
findNearestMaskedOp(const indexedOctree< treeDataPrimitivePatch< PatchType >> &tree, const labelUList &excludeIndices)
const point_type & rawPoint() const noexcept
The point, no checks.
Non-pointer based hierarchical recursive searching.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const std::string patch
OpenFOAM patch number as a std::string.
Encapsulation of data needed to search on PrimitivePatches.
bool found(const T &val, label pos=0) const
True if the value if found in the list.
Minimal example by using system/controlDict.functions: