44 if (info.
index() == -1)
47 <<
"Could not find " <<
sample <<
" in octree."
52 const label facei = info.
index();
Minimal example by using system/controlDict.functions:
label index() const noexcept
Return the hit index.
Non-pointer based hierarchical recursive searching.
volumeType getVolumeType(const indexedOctree< treeDataPrimitivePatch< PatchType > > &, const point &) const
Get type (inside,outside,mixed,unknown) of point w.r.t. surface.
treeDataPrimitivePatch(const bool cacheBb, const primitivePatch &patch, const scalar planarTol)
An enumeration wrapper for classification of a location as being inside/outside of a volume.
@ OUTSIDE
A location outside the volume.
@ INSIDE
A location inside the volume.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
errorManip< error > abort(error &err)
vector point
Point is a vector.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.