37#ifndef Foam_pointHit_H
38#define Foam_pointHit_H
50template<
class Po
intType>
class PointHit;
63template<
class Po
intType>
140 return eligibleMiss_;
161 <<
"Requested a hit point, but it was not hit"
174 <<
"Requested a miss point, but it was hit"
192 eligibleMiss_ =
false;
196 void setMiss(
const bool eligible)
noexcept
199 eligibleMiss_ = eligible;
219 eligibleMiss_ =
false;
226 template<
class AnyPo
intType>
229 return distance_ <
rhs.distance_;
238template<
class Po
intType>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Describes the interaction of a object and a (templated) point. It carries the info of a successful hi...
void setHit() noexcept
Set the hit status on.
const point_type & rawPoint() const noexcept
The point, no checks.
bool eligibleMiss() const noexcept
bool operator<(const PointHit< AnyPointType > &rhs) const noexcept
Distance comparision operator, for sorting.
scalar distance() const noexcept
Return distance to hit.
void hitPoint(const point_type &p)
Set the point as hit.
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
PointHit(bool hit, const point_type &p, scalar dist, bool eligibleMiss=false)
Construct from components.
PointHit(const point_type &p)
Construct from point with a large distance, no hit, no eligible misses.
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.
PointHit()
Default construct. A zero point with a large distance, no hit, no eligible misses.
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)
PointHit< point > pointHit
A PointHit with a 3D point.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
errorManip< error > abort(error &err)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...