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) |
PointHit | ( | const bool | hit, |
const Point & | p, | ||
const scalar | dist, | ||
const bool | eligibleMiss | ||
) | [inline]
|
Construct from components.
Definition at line 86 of file PointHit_.H.
PointHit | ( | const Point & | p ) | [inline]
|
Construct from point. Hit and distance set later.
Definition at line 100 of file PointHit_.H.
bool hit | ( | ) | const [inline]
|
Is there a hit.
Definition at line 112 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFace::getSampleType(), octreeDataFaceList::getSampleType(), treeDataFace::getVolumeType(), face::intersection(), octreeDataTriSurface::intersects(), octreeDataFace::intersects(), treeDataTriSurface::intersects(), treeDataFace::intersects(), treeDataCell::intersects(), octreeDataFaceList::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().
const Point& hitPoint | ( | ) | const [inline]
|
Return hit point.
Definition at line 118 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFace::getSampleType(), octreeDataFaceList::getSampleType(), face::intersection(), octreeDataTriSurface::intersects(), octreeDataFace::intersects(), treeDataTriSurface::intersects(), treeDataFace::intersects(), treeDataCell::intersects(), octreeDataFaceList::intersects(), slidingInterface::modifyMotionPoints(), face::nearestPoint(), face::ray(), and ExactParticle< ParticleType >::trackToFace().
scalar distance | ( | ) | const [inline]
|
Return distance to hit.
Definition at line 131 of file PointHit_.H.
Referenced by booleanSurface::booleanSurface(), octreeDataPoint::calcNearest(), octreeDataFace::calcNearest(), octreeDataEdges::calcNearest(), octreeDataFaceList::calcNearest(), treeDataPoint::findNearest(), treeDataFace::findNearest(), treeDataEdge::findNearest(), meshSearch::findNearestBoundaryFace(), face::intersection(), octreeDataTriSurface::intersects(), octreeDataFace::intersects(), treeDataTriSurface::intersects(), treeDataFace::intersects(), treeDataCell::intersects(), octreeDataFaceList::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().
const Point& missPoint | ( | ) | const [inline]
|
Return miss point.
Definition at line 137 of file PointHit_.H.
Referenced by octreeDataFaceList::calcNearest(), sampledSet::findNearFace(), octreeDataFace::getSampleType(), octreeDataFaceList::getSampleType(), slidingInterface::modifyMotionPoints(), face::nearestPoint(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), and face::ray().
const Point& rawPoint | ( | ) | const [inline]
|
Return point with no checking.
Definition at line 150 of file PointHit_.H.
Referenced by booleanSurface::booleanSurface(), octreeDataPoint::calcNearest(), octreeDataFace::calcNearest(), octreeDataEdges::calcNearest(), tetrahedron< Point, PointRef >::containmentSphere(), treeDataPoint::findNearest(), treeDataFace::findNearest(), treeDataEdge::findNearest(), octreeDataTriSurface::getSampleType(), octreeDataFace::getSampleType(), treeDataFace::getVolumeType(), line< Point, PointRef >::nearestDist(), orientedSurface::orient(), triangle< Point, PointRef >::ray(), and faceCollapser::setRefinement().
bool eligibleMiss | ( | ) | const [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().
void setHit | ( | ) | [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().
void setMiss | ( | const bool | eligible ) | [inline]
|
Definition at line 167 of file PointHit_.H.
Referenced by tetrahedron< Point, PointRef >::containmentSphere(), face::nearestPoint(), triangle< Point, PointRef >::ray(), and face::ray().
void setPoint | ( | const Point & | p ) | [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().
void setDistance | ( | const scalar | d ) | [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().