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;
55 nearestPoint = nearHit.
point();
const PatchType & patch() const noexcept
The underlying patch.
const Type & shapes() const noexcept
Reference to shape.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
bool found(const T &val, label pos=0) const
True if the value if found in the list.
#define forAll(list, i)
Loop across all elements in list.
findNearestMaskedOp(const indexedOctree< treeDataPrimitivePatch< PatchType >> &tree, const labelUList &excludeIndices)
Encapsulation of data needed to search on PrimitivePatches.
Tree tree(triangles.begin(), triangles.end())
Describes the interaction of a object and a (templated) point. It carries the info of a successful hi...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Non-pointer based hierarchical recursive searching.
scalar distance() const noexcept
Return distance to hit.
const std::string patch
OpenFOAM patch number as a std::string.
const point_type & point() const noexcept
Return the point, no checks.