This class describes the interaction of a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point. More...
Public Member Functions | |
PointHit () | |
Construct null. More... | |
PointHit (const bool hit, const Point &p, const scalar dist, const bool eligibleMiss) | |
Construct from components. More... | |
PointHit (const Point &p) | |
Construct from point. Hit and distance set later. More... | |
bool | hit () const |
Is there a hit. More... | |
const Point & | hitPoint () const |
Return hit point. More... | |
scalar | distance () const |
Return distance to hit. More... | |
const Point & | missPoint () const |
Return miss point. More... | |
const Point & | rawPoint () const |
Return point with no checking. More... | |
bool | eligibleMiss () const |
Is this an eligible miss. More... | |
void | setHit () |
void | setMiss (const bool eligible) |
void | setPoint (const Point &p) |
void | setDistance (const scalar d) |
Friends | |
Ostream & | operator (Ostream &os, const PointHit< Point > &b) |
This class describes the interaction of a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point.
Definition at line 51 of file PointHit.H.
|
inline |
Construct null.
Definition at line 84 of file PointHit.H.
Referenced by PointHit< point >::PointHit().
|
inline |
Construct from components.
Definition at line 94 of file PointHit.H.
|
inline |
Construct from point. Hit and distance set later.
Definition at line 108 of file PointHit.H.
|
inline |
Is there a hit.
Definition at line 120 of file PointHit.H.
Referenced by extendedEdgeMesh::allNearestFeatureEdges(), triSurfaceTools::calcInterpolationWeights(), mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), face::intersection(), slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectFaceCentres(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectPoints(), triangle< Point, PointRef >::ray(), face::ray(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inline |
Return hit point.
Definition at line 126 of file PointHit.H.
Referenced by mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), face::intersection(), slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), and face::ray().
|
inline |
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(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), face::intersection(), slidingInterface::modifyMotionPoints(), NamedEnum< compressibleField, 8 >::names(), line< Point, PointRef >::nearestDist(), tetrahedron< Point, PointRef >::nearestPoint(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), findUniqueIntersectOp::operator()(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), pointHitSort::operator<(), pointHitSort::operator==(), orientedSurface::orient(), treeDataEdge::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectFaceCentres(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectPoints(), face::ray(), cellDistFuncs::smallestDist(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inline |
Return miss point.
Definition at line 145 of file PointHit.H.
Referenced by slidingInterface::modifyMotionPoints(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectFaceCentres(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectPoints(), and face::ray().
|
inline |
Return point with no checking.
Definition at line 158 of file PointHit.H.
Referenced by extendedEdgeMesh::allNearestFeatureEdges(), booleanSurface::booleanSurface(), triSurfaceTools::calcInterpolationWeights(), tetrahedron< Point, PointRef >::containmentSphere(), dynamicTreeDataPoint::findNearest(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), NamedEnum< compressibleField, 8 >::names(), line< Point, PointRef >::nearestDist(), tetrahedron< Point, PointRef >::nearestPoint(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), orientedSurface::orient(), triangle< Point, PointRef >::ray(), faceCollapser::setRefinement(), AMIInterpolation::srcPointFace(), triSurfaceTools::surfaceSide(), and AMIInterpolation::tgtPointFace().
|
inline |
Is this an eligible miss.
Definition at line 164 of file PointHit.H.
Referenced by PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectFaceCentres(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::projectPoints(), face::ray(), AMIInterpolation::srcPointFace(), and AMIInterpolation::tgtPointFace().
|
inline |
Definition at line 169 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), triangle< Point, PointRef >::ray(), and face::ray().
|
inline |
Definition at line 175 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), triangle< Point, PointRef >::ray(), and face::ray().
|
inline |
Definition at line 181 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), triangle< Point, PointRef >::ray(), face::ray(), and faceCollapser::setRefinement().
|
inline |
Definition at line 186 of file PointHit.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), triangle< Point, PointRef >::nearestPoint(), face::nearestPointClassify(), triangle< Point, PointRef >::ray(), and face::ray().