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) |
Private Attributes | |
bool | hit_ |
Hit success. More... | |
Point | hitPoint_ |
Point of hit; for miss holds best estimate outside the object. More... | |
scalar | distance_ |
Distance to hit point. More... | |
bool | eligibleMiss_ |
Eligible miss. More... | |
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.
Construct from components.
Definition at line 94 of file PointHit.H.
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(), directAMI< SourcePatch, TargetPatch >::appendToDirectSeeds(), triSurfaceTools::calcInterpolationWeights(), slidingInterface::coupleInterface(), surfaceFeatures::edgeNearest(), mappedPatchBase::facePoint(), faceTriangulation::findDiagonal(), treeDataPrimitivePatch< PatchType >::findIntersection(), sampledSet::findNearFace(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), particle< Type >::hitWallFaces(), face::intersection(), treeDataTriSurface::intersects(), slidingInterface::modifyMotionPoints(), face::nearestPointClassify(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), searchableRotatedBox::overlaps(), PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), slidingInterface::projectPoints(), face::ray(), triangle< Foam::Vector, Foam::Vector >::ray(), AMIInterpolation< SourcePatch, TargetPatch >::srcPointFace(), and AMIInterpolation< SourcePatch, TargetPatch >::tgtPointFace().
|
inline |
Return hit point.
Definition at line 126 of file PointHit.H.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::calcFaceAddressing(), PatchToPatchInterpolation< FromPatch, ToPatch >::calcPointAddressing(), slidingInterface::coupleInterface(), mappedPatchBase::facePoint(), treeDataPrimitivePatch< PatchType >::findIntersection(), sampledSet::findNearFace(), face::intersection(), treeDataTriSurface::intersects(), slidingInterface::modifyMotionPoints(), face::nearestPointClassify(), treeDataCell::findIntersectOp::operator()(), treeDataFace::findIntersectOp::operator()(), PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), slidingInterface::projectPoints(), and face::ray().
|
inline |
Return distance to hit.
Definition at line 139 of file PointHit.H.
Referenced by booleanSurface::booleanSurface(), PatchToPatchInterpolation< FromPatch, ToPatch >::calcFaceAddressing(), triSurfaceTools::calcInterpolationWeights(), PatchToPatchInterpolation< FromPatch, ToPatch >::calcPointAddressing(), slidingInterface::coupleInterface(), mappedPatchBase::facePoint(), faceTriangulation::findDiagonal(), treeDataPrimitivePatch< PatchType >::findIntersection(), dynamicTreeDataPoint::findNearest(), meshSearch::findNearestBoundaryFace(), meshSearch::findNearestBoundaryFaceWalk(), cellPointWeight::findTetrahedron(), cellPointWeight::findTriangle(), face::intersection(), treeDataTriSurface::intersects(), faceCoupleInfo::maxDistance(), slidingInterface::modifyMotionPoints(), tetrahedron::nearestPoint(), face::nearestPointClassify(), 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(), searchableRotatedBox::overlaps(), treeDataEdge::overlaps(), treeDataPrimitivePatch< PatchType >::overlaps(), PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), slidingInterface::projectPoints(), face::ray(), cellDistFuncs::smallestDist(), sampledTriSurfaceMesh::update(), and PairCollision< CloudType >::wallInteraction().
|
inline |
Return miss point.
Definition at line 145 of file PointHit.H.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::calcPointAddressing(), sampledSet::findNearFace(), slidingInterface::modifyMotionPoints(), face::nearestPointClassify(), PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), slidingInterface::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::containmentSphere(), surfaceFeatures::edgeNearest(), dynamicTreeDataPoint::findNearest(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), tetrahedron::nearestPoint(), treeDataPoint::findNearestOp::operator()(), treeDataEdge::findNearestOp::operator()(), treeDataPrimitivePatch< PatchType >::findNearestOp::operator()(), treeDataFace::findNearestOp::operator()(), orientedSurface::orient(), triangle< Foam::Vector, Foam::Vector >::ray(), faceCollapser::setRefinement(), AMIInterpolation< SourcePatch, TargetPatch >::srcPointFace(), triSurfaceTools::surfaceSide(), AMIInterpolation< SourcePatch, TargetPatch >::tgtPointFace(), sampledTriSurfaceMesh::update(), and PairCollision< CloudType >::wallInteraction().
|
inline |
Is this an eligible miss.
Definition at line 164 of file PointHit.H.
Referenced by PrimitivePatch< labelledTri, List, pointField, point >::projectFaceCentres(), PrimitivePatch< labelledTri, List, pointField, point >::projectPoints(), and face::ray().
|
inline |
Definition at line 169 of file PointHit.H.
Referenced by tetrahedron::containmentSphere(), face::intersection(), face::nearestPointClassify(), face::ray(), triangle< Foam::Vector, Foam::Vector >::ray(), and faceTriangulation::rayEdgeIntersect().
|
inline |
Definition at line 175 of file PointHit.H.
Referenced by tetrahedron::containmentSphere(), face::nearestPointClassify(), face::ray(), and triangle< Foam::Vector, Foam::Vector >::ray().
|
inline |
Definition at line 181 of file PointHit.H.
Referenced by tetrahedron::containmentSphere(), face::intersection(), face::nearestPointClassify(), face::ray(), triangle< Foam::Vector, Foam::Vector >::ray(), faceTriangulation::rayEdgeIntersect(), and faceCollapser::setRefinement().
|
inline |
Definition at line 186 of file PointHit.H.
Referenced by tetrahedron::containmentSphere(), face::intersection(), face::nearestPointClassify(), face::ray(), triangle< Foam::Vector, Foam::Vector >::ray(), and faceTriangulation::rayEdgeIntersect().
|
private |
Hit success.
Definition at line 67 of file PointHit.H.
Referenced by PointHit< point >::hit(), PointHit< point >::hitPoint(), PointHit< point >::missPoint(), PointHit< point >::setHit(), and PointHit< point >::setMiss().
|
private |
Point of hit; for miss holds best estimate outside the object.
Definition at line 70 of file PointHit.H.
Referenced by PointHit< point >::hitPoint(), PointHit< point >::missPoint(), PointHit< point >::rawPoint(), and PointHit< point >::setPoint().
|
private |
Distance to hit point.
Definition at line 73 of file PointHit.H.
Referenced by PointHit< point >::distance(), and PointHit< point >::setDistance().
|
private |
Eligible miss.
Definition at line 76 of file PointHit.H.
Referenced by PointHit< point >::eligibleMiss(), PointHit< point >::setHit(), and PointHit< point >::setMiss().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.