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...
#include <OpenFOAM/PointHit_.H>
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 63 of file PointHit_.H.
Public Member Functions | |
PointHit (const bool hit, const Point &p, const scalar dist, const bool eligibleMiss) | |
Construct from components. | |
PointHit (const Point &p) | |
Construct from point. Hit and distance set later. | |
bool | hit () const |
Is there a hit. | |
const Point & | hitPoint () const |
Return hit point. | |
scalar | distance () const |
Return distance to hit. | |
const Point & | missPoint () const |
Return miss point. | |
const Point & | rawPoint () const |
Return point with no checking. | |
bool | eligibleMiss () const |
Is this an eligible miss. | |
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) |
|
inline |
Construct from components.
Definition at line 86 of file PointHit_.H.
|
inline |
Construct from point. Hit and distance set later.
Definition at line 100 of file PointHit_.H.
|
inline |
Is there a hit.
Definition at line 112 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFaceList::getSampleType(), octreeDataFace::getSampleType(), treeDataFace::getVolumeType(), face::intersection(), treeDataTriSurface::intersects(), octreeDataFaceList::intersects(), octreeDataTriSurface::intersects(), treeDataCell::intersects(), octreeDataFace::intersects(), treeDataFace::intersects(), slidingInterface::modifyMotionPoints(), face::nearestPoint(), meshSearch::pointInCell(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), triangle< Point, PointRef >::ray(), face::ray(), and ExactParticle< ParticleType >::trackToFace().
|
inline |
Return hit point.
Definition at line 118 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFaceList::getSampleType(), octreeDataFace::getSampleType(), face::intersection(), treeDataTriSurface::intersects(), octreeDataFaceList::intersects(), octreeDataTriSurface::intersects(), treeDataCell::intersects(), octreeDataFace::intersects(), treeDataFace::intersects(), slidingInterface::modifyMotionPoints(), face::nearestPoint(), face::ray(), and ExactParticle< ParticleType >::trackToFace().
|
inline |
Return distance to hit.
Definition at line 131 of file PointHit_.H.
Referenced by booleanSurface::booleanSurface(), octreeDataPoint::calcNearest(), octreeDataEdges::calcNearest(), octreeDataFaceList::calcNearest(), octreeDataFace::calcNearest(), treeDataPoint::findNearest(), treeDataEdge::findNearest(), treeDataFace::findNearest(), meshSearch::findNearestBoundaryFace(), face::intersection(), treeDataTriSurface::intersects(), octreeDataFaceList::intersects(), octreeDataTriSurface::intersects(), treeDataCell::intersects(), octreeDataFace::intersects(), treeDataFace::intersects(), slidingInterface::modifyMotionPoints(), line< Point, PointRef >::nearestDist(), face::nearestPoint(), pointHitSort::operator<(), pointHitSort::operator==(), orientedSurface::orient(), meshSearch::pointInCell(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), face::ray(), cellDistFuncs::smallestDist(), and ExactParticle< ParticleType >::trackToFace().
|
inline |
Return miss point.
Definition at line 137 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFaceList::getSampleType(), octreeDataFace::getSampleType(), slidingInterface::modifyMotionPoints(), face::nearestPoint(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), and face::ray().
|
inline |
Return point with no checking.
Definition at line 150 of file PointHit_.H.
Referenced by booleanSurface::booleanSurface(), octreeDataPoint::calcNearest(), octreeDataEdges::calcNearest(), octreeDataFace::calcNearest(), tetrahedron< Point, PointRef >::containmentSphere(), treeDataPoint::findNearest(), treeDataEdge::findNearest(), treeDataFace::findNearest(), octreeDataTriSurface::getSampleType(), octreeDataFace::getSampleType(), treeDataFace::getVolumeType(), line< Point, PointRef >::nearestDist(), orientedSurface::orient(), triangle< Point, PointRef >::ray(), and faceCollapser::setRefinement().
|
inline |
Is this an eligible miss.
Definition at line 156 of file PointHit_.H.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), and face::ray().
|
inline |
Definition at line 161 of file PointHit_.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), face::nearestPoint(), triangle< Point, PointRef >::ray(), and face::ray().
|
inline |
Definition at line 167 of file PointHit_.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), face::nearestPoint(), triangle< Point, PointRef >::ray(), and face::ray().
|
inline |
Definition at line 173 of file PointHit_.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), face::nearestPoint(), triangle< Point, PointRef >::ray(), face::ray(), and faceCollapser::setRefinement().
|
inline |
Definition at line 178 of file PointHit_.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), triangle< Point, PointRef >::intersection(), face::intersection(), face::nearestPoint(), triangle< Point, PointRef >::ray(), and face::ray().