7template<
class PatchType>
22 excludeIndices_(excludeIndices)
30 scalar& nearestDistSqr,
36 const PatchType& patch = shape.
patch();
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;
Minimal example by using system/controlDict.functions:
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
const point_type & rawPoint() const noexcept
The point, no checks.
scalar distance() const noexcept
Return distance to hit.
bool found(const T &val, label pos=0) const
True if the value if found in the list.
findNearestMaskedOp(const indexedOctree< treeDataPrimitivePatch< PatchType > > &tree, const labelUList &excludeIndices)
Non-pointer based hierarchical recursive searching.
const Type & shapes() const
Reference to shape.
Encapsulation of data needed to search on PrimitivePatches.
const PatchType & patch() const
Return access to the underlying patch.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
#define forAll(list, i)
Loop across all elements in list.