53template<
class Po
intType>
130 return eligibleMiss_;
151 <<
"Requested a hit point, but it was not hit"
164 <<
"Requested a miss point, but it was hit"
185 eligibleMiss_ =
false;
189 void setMiss(
const bool eligible)
noexcept
192 eligibleMiss_ = eligible;
211 template<
class AnyPo
intType>
214 return distance_ < rhs.distance_;
221template<
class Po
intType>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Describes the interaction of a face and a point. It carries the info of a successful hit and (if succ...
void setHit() noexcept
Set the hit status on.
PointType point_type
The point type.
const point_type & rawPoint() const noexcept
The point, no checks.
bool eligibleMiss() const noexcept
Is this an eligible miss.
bool operator<(const PointHit< AnyPointType > &rhs) const noexcept
Distance comparision operator, for sorting.
scalar distance() const noexcept
Return distance to hit.
PointHit(const bool hit, const point_type &p, const scalar dist, const bool eligibleMiss=false)
Construct from components.
void setPoint(const point_type &p)
Set the point.
void setDistance(const scalar d) noexcept
Set the distance.
const point_type & missPoint() const
Return the miss point. Fatal if hit.
bool hit() const noexcept
Is there a hit.
PointHit(const point_type &p)
void setMiss(const bool eligible) noexcept
Set the hit status off and set the eligible miss status.
const point_type & point() const noexcept
Return the point, no checks.
const point_type & hitPoint() const
Return the hit point. Fatal if not hit.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0)