This class describes the interaction of (usually) a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point. More...
#include <meshTools/PointIndexHit_.H>
This class describes the interaction of (usually) a face and a point. It carries the info of a successful hit and (if successful), returns the interaction point.
like pointHit but carries face (or cell, edge etc.) index
Definition at line 54 of file PointIndexHit_.H.
Public Member Functions | |
PointIndexHit (const bool success, const Point &p, const label index) | |
Construct from components. | |
PointIndexHit (const Point &p) | |
Construct from point. Hit and distance set later. | |
PointIndexHit () | |
Construct null. | |
PointIndexHit (Istream &is) | |
Construct from Istream. | |
bool | hit () const |
Is there a hit. | |
label | index () const |
Return index. | |
const Point & | hitPoint () const |
Return hit point. | |
const Point & | missPoint () const |
Return miss point. | |
const Point & | rawPoint () const |
Return point with no checking. | |
Point & | rawPoint () |
void | setHit () |
void | setMiss () |
void | setPoint (const Point &p) |
void | setIndex (const label index) |
bool | operator== (const PointIndexHit &rhs) const |
bool | operator!= (const PointIndexHit &rhs) const |
void | write (Ostream &os) |
Friends | |
Ostream & | operator<< (Ostream &os, const PointIndexHit &pHit) |
Istream & | operator>> (Istream &is, PointIndexHit &pHit) |
|
inline |
Construct from components.
Definition at line 73 of file PointIndexHit_.H.
|
inline |
Construct from point. Hit and distance set later.
Definition at line 81 of file PointIndexHit_.H.
|
inline |
Construct null.
Definition at line 89 of file PointIndexHit_.H.
|
inline |
Construct from Istream.
Definition at line 97 of file PointIndexHit_.H.
|
inline |
Is there a hit.
Definition at line 106 of file PointIndexHit_.H.
Referenced by triSurfaceSearch::calcNearest(), triSurfaceSearch::calcNearestTri(), searchableSurfacesQueries::facesIntersection(), meshSearch::findCell(), patchProbes::findElements(), searchableSphere::findLine(), searchableCylinder::findLine(), octree< Type >::findLine(), searchableSphere::findLineAll(), searchableCylinder::findLineAll(), searchableBox::findLineAll(), triSurfaceMesh::findLineAll(), searchableSphere::findLineAny(), searchableCylinder::findLineAny(), octree< Type >::findLineAny(), meshSearch::findNearestBoundaryFace(), treeDataTriSurface::getVolumeType(), meshSearch::intersection(), meshSearch::intersections(), PointIndexHit< Point >::operator==(), triSurfaceTools::track(), triSurfaceTools::trackToEdge(), sampledTriSurfaceMesh::update(), and PointIndexHit< Point >::write().
|
inline |
Return index.
Definition at line 112 of file PointIndexHit_.H.
Referenced by triSurfaceSearch::calcNearestTri(), meshSearch::findCell(), patchProbes::findElements(), searchableBox::findLine(), searchableBox::findLineAll(), meshSearch::findNearestBoundaryFace(), treeDataTriSurface::getVolumeType(), treeDataFace::getVolumeType(), meshSearch::intersection(), meshSearch::intersections(), surfaceFeatures::nearestSurfEdge(), surfaceLocation::normal(), PointIndexHit< Point >::operator==(), PointIndexHit< Point >::setIndex(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::trackToEdge(), sampledTriSurfaceMesh::update(), and PointIndexHit< Point >::write().
|
inline |
Return hit point.
Definition at line 118 of file PointIndexHit_.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Referenced by triSurfaceSearch::calcNearest(), searchableSurfacesQueries::facesIntersection(), meshSearch::findCell(), searchableBox::findLineAll(), treeDataTriSurface::getVolumeType(), meshSearch::intersections(), surfaceIntersection::surfaceIntersection(), sampledTriSurfaceMesh::update(), and PointIndexHit< Point >::write().
|
inline |
Return miss point.
Definition at line 131 of file PointIndexHit_.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
Referenced by PointIndexHit< Point >::write().
|
inline |
Return point with no checking.
Definition at line 144 of file PointIndexHit_.H.
Referenced by searchableBox::findLine(), searchableBox::findNearestOnEdge(), surfaceFeatures::nearestSurfEdge(), PointIndexHit< Point >::operator==(), and triSurfaceTools::trackToEdge().
|
inline |
Definition at line 149 of file PointIndexHit_.H.
|
inline |
Definition at line 154 of file PointIndexHit_.H.
Referenced by triSurfaceTools::classify(), searchableBox::findLine(), octree< Type >::findLine(), and octree< Type >::findLineAny().
|
inline |
Definition at line 159 of file PointIndexHit_.H.
Referenced by triSurfaceTools::classify(), searchableBox::findNearestOnEdge(), and triSurfaceTools::trackToEdge().
|
inline |
Definition at line 164 of file PointIndexHit_.H.
References p.
Referenced by triSurfaceTools::classify(), octree< Type >::findLine(), and octree< Type >::findLineAny().
|
inline |
Definition at line 169 of file PointIndexHit_.H.
References PointIndexHit< Point >::index().
Referenced by triSurfaceTools::classify(), searchableBox::findLine(), octree< Type >::findLine(), octree< Type >::findLineAny(), searchableBox::findNearestOnEdge(), and meshSearch::intersection().
|
inline |
Definition at line 174 of file PointIndexHit_.H.
References PointIndexHit< Point >::hit(), PointIndexHit< Point >::index(), and PointIndexHit< Point >::rawPoint().
Referenced by PointIndexHit< Point >::operator!=().
|
inline |
Definition at line 182 of file PointIndexHit_.H.
References PointIndexHit< Point >::operator==().
|
inline |
Definition at line 187 of file PointIndexHit_.H.
References PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), PointIndexHit< Point >::index(), and PointIndexHit< Point >::missPoint().
Referenced by meshSearch::findCell().
|
friend |
Definition at line 199 of file PointIndexHit_.H.
|
friend |
Definition at line 221 of file PointIndexHit_.H.