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...
Public Member Functions | |
PointIndexHit (const bool success, const Point &p, const label index) | |
Construct from components. More... | |
PointIndexHit (const Point &p) | |
Construct from point. Hit and distance set later. More... | |
PointIndexHit () | |
Construct null. More... | |
PointIndexHit (Istream &is) | |
Construct from Istream. More... | |
bool | hit () const |
Is there a hit. More... | |
label | index () const |
Return index. More... | |
const Point & | hitPoint () const |
Return hit point. More... | |
const Point & | missPoint () const |
Return miss point. More... | |
const Point & | rawPoint () const |
Return point with no checking. More... | |
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) |
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 53 of file PointIndexHit.H.
|
inline |
Construct from components.
Definition at line 72 of file PointIndexHit.H.
|
inline |
Construct from point. Hit and distance set later.
Definition at line 80 of file PointIndexHit.H.
|
inline |
Construct null.
Definition at line 88 of file PointIndexHit.H.
|
inline |
Construct from Istream.
Definition at line 96 of file PointIndexHit.H.
|
inline |
Is there a hit.
Definition at line 105 of file PointIndexHit.H.
Referenced by mappedPatchBase::calcMapping(), patchProbes::findElements(), indexedOctree< Type >::findLine(), searchableBox::findLineAll(), searchableCylinder::findLineAll(), searchableDisk::findLineAll(), searchableSphere::findLineAll(), triSurfaceSearch::findLineAll(), triSurfaceRegionSearch::findNearest(), meshSearch::findNearestBoundaryFace(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), repatchMesh::getNearest(), meshSearch::intersection(), meshSearch::intersections(), edgeIntersections::merge(), extendedEdgeMesh::minDisconnectedDist(), Foam::minDist(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), Foam::operator<<(), PointIndexHit< Point >::operator==(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), triSurfaceTools::track(), triSurfaceTools::trackToEdge(), TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection(), and PointIndexHit< Point >::write().
|
inline |
Return index.
Definition at line 111 of file PointIndexHit.H.
Referenced by mappedInternalPatchBase::calcMapping(), mappedPatchBase::calcMapping(), patchProbes::findElements(), searchableBox::findLine(), searchableBox::findLineAll(), triSurfaceSearch::findLineAll(), meshSearch::findNearestBoundaryFace(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), repatchMesh::getNearest(), searchableExtrudedCircle::getNormal(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), meshSearch::intersection(), meshSearch::intersections(), edgeIntersections::merge(), extendedEdgeMesh::minDisconnectedDist(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), surfaceLocation::normal(), Foam::operator<<(), PointIndexHit< Point >::operator==(), PointIndexHit< Point >::setIndex(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::trackToEdge(), TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection(), and PointIndexHit< Point >::write().
|
inline |
Return hit point.
Definition at line 117 of file PointIndexHit.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by mappedInternalPatchBase::calcMapping(), searchableBox::findLineAll(), triSurfaceRegionSearch::findNearest(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), repatchMesh::getNearest(), searchableExtrudedCircle::getNormal(), extendedEdgeMesh::minDisconnectedDist(), Foam::minDist(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), surfaceIntersection::surfaceIntersection(), and PointIndexHit< Point >::write().
|
inline |
Return miss point.
Definition at line 130 of file PointIndexHit.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by PointIndexHit< Point >::write().
|
inline |
Return point with no checking.
Definition at line 143 of file PointIndexHit.H.
Referenced by indexedOctree< Type >::findLine(), searchableBox::findLine(), searchableBox::findNearestOnEdge(), edgeIntersections::merge(), surfaceFeatures::nearestSurfEdge(), Foam::operator<<(), PointIndexHit< Point >::operator==(), and triSurfaceTools::trackToEdge().
|
inline |
Definition at line 148 of file PointIndexHit.H.
|
inline |
Definition at line 153 of file PointIndexHit.H.
Referenced by triSurfaceTools::classify(), and searchableBox::findLine().
|
inline |
Definition at line 158 of file PointIndexHit.H.
Referenced by triSurfaceTools::classify(), searchableBox::findNearestOnEdge(), and triSurfaceTools::trackToEdge().
|
inline |
Definition at line 163 of file PointIndexHit.H.
References p.
Referenced by triSurfaceTools::classify().
|
inline |
Definition at line 168 of file PointIndexHit.H.
References PointIndexHit< Point >::index().
Referenced by triSurfaceTools::classify(), searchableBox::findLine(), searchableBox::findNearestOnEdge(), meshSearch::intersection(), and meshSearch::intersections().
|
inline |
Definition at line 173 of file PointIndexHit.H.
References PointIndexHit< Point >::hit(), PointIndexHit< Point >::index(), and PointIndexHit< Point >::rawPoint().
Referenced by PointIndexHit< Point >::operator!=().
|
inline |
Definition at line 181 of file PointIndexHit.H.
References PointIndexHit< Point >::operator==().
|
inline |
Definition at line 186 of file PointIndexHit.H.
References PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), PointIndexHit< Point >::index(), and PointIndexHit< Point >::missPoint().
|
friend |
Definition at line 198 of file PointIndexHit.H.
|
friend |
Definition at line 220 of file PointIndexHit.H.