Describes the interaction of a face and a point. It carries the info of a successful hit and (if successful) the interaction point. More...
Public Types | |
typedef PointType | point_type |
The point type. More... | |
Public Member Functions | |
PointHit () | |
PointHit (const point_type &p) | |
PointHit (const bool hit, const point_type &p, const scalar dist, const bool eligibleMiss=false) | |
Construct from components. More... | |
bool | hit () const noexcept |
Is there a hit. More... | |
bool | eligibleMiss () const noexcept |
Is this an eligible miss. More... | |
const point_type & | point () const noexcept |
Return the point, no checks. More... | |
scalar | distance () const noexcept |
Return distance to hit. More... | |
const point_type & | hitPoint () const |
Return the hit point. Fatal if not hit. More... | |
const point_type & | missPoint () const |
Return the miss point. Fatal if hit. More... | |
const point_type & | rawPoint () const noexcept |
The point, no checks. More... | |
void | setHit () noexcept |
Set the hit status on. More... | |
void | setMiss (const bool eligible) noexcept |
Set the hit status off and set the eligible miss status. More... | |
void | setPoint (const point_type &p) |
Set the point. More... | |
void | setDistance (const scalar d) noexcept |
Set the distance. More... | |
template<class AnyPointType > | |
bool | operator< (const PointHit< AnyPointType > &rhs) const noexcept |
Distance comparision operator, for sorting. More... | |
Describes the interaction of a face and a point. It carries the info of a successful hit and (if successful) the interaction point.
Definition at line 53 of file PointHit.H.
typedef PointType point_type |
The point type.
Definition at line 75 of file PointHit.H.
|
inline |
Default construct. A zero point with a large distance, no hit, no eligible misses
Definition at line 82 of file PointHit.H.
|
inlineexplicit |
Construct from point with a large distance, no hit, no eligible misses
Definition at line 92 of file PointHit.H.
|
inline |
Construct from components.
Definition at line 101 of file PointHit.H.
|
inlinenoexcept |
Is there a hit.
Definition at line 121 of file PointHit.H.
Referenced by extendedEdgeMesh::allNearestFeatureEdges(), triSurfaceTools::calcInterpolationWeights(), mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), sampledSet::findNearFace(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), triangleFuncs::intersectBb(), face::intersection(), slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), treeDataFace::findIntersectOp::operator()(), treeDataCell::findIntersectOp::operator()(), Foam::operator<<(), searchableRotatedBox::overlaps(), PrimitivePatch< FaceList, PointField >::projectFaceCentres(), PrimitivePatch< FaceList, PointField >::projectPoints(), face::ray(), triangle< Point, PointRef >::ray(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inlinenoexcept |
Is this an eligible miss.
Definition at line 127 of file PointHit.H.
Referenced by Foam::operator<<(), PrimitivePatch< FaceList, PointField >::projectFaceCentres(), PrimitivePatch< FaceList, PointField >::projectPoints(), face::ray(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inlinenoexcept |
Return the point, no checks.
Definition at line 133 of file PointHit.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Return distance to hit.
Definition at line 139 of file PointHit.H.
Referenced by booleanSurface::booleanSurface(), triSurfaceTools::calcInterpolationWeights(), mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), dynamicTreeDataPoint::findNearest(), meshSearch::findNearestBoundaryFace(), wallBoundedStreamLine::findNearestTet(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), triangleFuncs::intersectBb(), face::intersection(), slidingInterface::modifyMotionPoints(), line< Point, PointRef >::nearestDist(), triangle< Point, PointRef >::nearestPoint(), tetrahedron< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), treeDataFace::findIntersectOp::operator()(), treeDataCell::findIntersectOp::operator()(), treeDataPoint::findNearestOp::operator()(), findNearestMaskedOp< PatchType >::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), Foam::operator<<(), orientedSurface::orient(), searchableRotatedBox::overlaps(), treeDataEdge::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), PrimitivePatch< FaceList, PointField >::projectFaceCentres(), PrimitivePatch< FaceList, PointField >::projectPoints(), face::ray(), cellDistFuncs::smallestDist(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inline |
Return the hit point. Fatal if not hit.
Definition at line 145 of file PointHit.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), sampledSet::findNearFace(), face::intersection(), slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), treeDataFace::findIntersectOp::operator()(), treeDataCell::findIntersectOp::operator()(), and face::ray().
|
inline |
Return the miss point. Fatal if hit.
Definition at line 158 of file PointHit.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by sampledSet::findNearFace(), slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), PrimitivePatch< FaceList, PointField >::projectFaceCentres(), PrimitivePatch< FaceList, PointField >::projectPoints(), and face::ray().
|
inlinenoexcept |
The point, no checks.
Definition at line 172 of file PointHit.H.
Referenced by extendedEdgeMesh::allNearestFeatureEdges(), booleanSurface::booleanSurface(), triSurfaceTools::calcInterpolationWeights(), tetrahedron< Point, PointRef >::containmentSphere(), dynamicTreeDataPoint::findNearest(), wallBoundedStreamLine::findNearestTet(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), line< Point, PointRef >::nearestDist(), tetrahedron< Point, PointRef >::nearestPoint(), treeDataPoint::findNearestOp::operator()(), findNearestMaskedOp< PatchType >::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), orientedSurface::orient(), triangle< Point, PointRef >::ray(), faceCollapser::setRefinement(), AMIInterpolation::srcPointFace(), triSurfaceTools::surfaceSide(), and AMIInterpolation::tgtPointFace().
|
inlinenoexcept |
Set the hit status on.
Definition at line 181 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), face::ray(), and triangle< Point, PointRef >::ray().
|
inlinenoexcept |
Set the hit status off and set the eligible miss status.
Definition at line 188 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), face::ray(), and triangle< Point, PointRef >::ray().
|
inline |
Set the point.
Definition at line 195 of file PointHit.H.
References p.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), face::ray(), triangle< Point, PointRef >::ray(), and faceCollapser::setRefinement().
|
inlinenoexcept |
Set the distance.
Definition at line 201 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), face::ray(), triangle< Point, PointRef >::ray(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
Distance comparision operator, for sorting.
Definition at line 211 of file PointHit.H.