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 patchProbes::findElements(), mapNearestMethod::findInitialSeeds(), searchableSphere::findLine(), searchableCylinder::findLine(), indexedOctree< Foam::treeDataFace >::findLine(), triSurfaceSearch::findLineAll(), searchableSphere::findLineAll(), searchableDisk::findLineAll(), searchableCylinder::findLineAll(), searchableBox::findLineAll(), searchableSphere::findLineAny(), searchableCylinder::findLineAny(), triSurfaceRegionSearch::findNearest(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::findNearest(), indexedOctree< Foam::treeDataFace >::findNearest(), meshSearch::findNearestBoundaryFace(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), mappedPatchBase::findSamples(), AMIMethod::findTargetFace(), boundaryMesh::getNearest(), meshSearch::intersection(), meshSearch::intersections(), edgeIntersections::merge(), extendedEdgeMesh::minDisconnectedDist(), Foam::minDist(), NamedEnum< compressibleField, 8 >::names(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), listPlusEqOp< T >::operator()(), findUniqueIntersectOp::operator()(), Foam::operator<<(), PointIndexHit< Point >::operator==(), AMIInterpolation::patchMagSf(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), triSurfaceTools::track(), triSurfaceTools::trackToEdge(), and PointIndexHit< Point >::write().
|
inline |
Return index.
Definition at line 111 of file PointIndexHit.H.
Referenced by patchProbes::findElements(), mapNearestMethod::findInitialSeeds(), searchableBox::findLine(), triSurfaceSearch::findLineAll(), searchableBox::findLineAll(), meshSearch::findNearestBoundaryFace(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), mappedPatchBase::findSamples(), AMIMethod::findTargetFace(), boundaryMesh::getNearest(), searchableExtrudedCircle::getNormal(), treeDataFace::getVolumeType(), treeDataPrimitivePatch< PatchType >::getVolumeType(), meshSearch::intersection(), meshSearch::intersections(), edgeIntersections::merge(), extendedEdgeMesh::minDisconnectedDist(), NamedEnum< compressibleField, 8 >::names(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), surfaceLocation::normal(), listPlusEqOp< T >::operator()(), findUniqueIntersectOp::operator()(), Foam::operator<<(), PointIndexHit< Point >::operator==(), PointIndexHit< Point >::setIndex(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::trackToEdge(), surfaceLocation::write(), 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 searchableBox::findLineAll(), triSurfaceRegionSearch::findNearest(), refinementFeatures::findNearestEdge(), refinementFeatures::findNearestPoint(), refinementFeatures::findNearestRegionEdge(), searchableExtrudedCircle::findParametricNearest(), mappedPatchBase::findSamples(), AMIMethod::findTargetFace(), boundaryMesh::getNearest(), searchableExtrudedCircle::getNormal(), extendedEdgeMesh::minDisconnectedDist(), Foam::minDist(), NamedEnum< compressibleField, 8 >::names(), surfaceFeatures::nearestSurfEdge(), listPlusEqOp< T >::operator()(), AMIInterpolation::patchMagSf(), 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 listPlusEqOp< T >::operator()(), and PointIndexHit< Point >::write().
|
inline |
Return point with no checking.
Definition at line 143 of file PointIndexHit.H.
Referenced by searchableBox::findLine(), indexedOctree< Foam::treeDataFace >::findLine(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::findNearest(), searchableBox::findNearestOnEdge(), edgeIntersections::merge(), NamedEnum< compressibleField, 8 >::names(), surfaceFeatures::nearestSurfEdge(), Foam::operator<<(), PointIndexHit< Point >::operator==(), searchableCylinder::points(), 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(), searchableBox::findLine(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::findNearest(), indexedOctree< Foam::treeDataFace >::findNearest(), and searchableCylinder::points().
|
inline |
Definition at line 158 of file PointIndexHit.H.
Referenced by triSurfaceTools::classify(), searchableBox::findNearestOnEdge(), searchableCylinder::points(), and triSurfaceTools::trackToEdge().
|
inline |
Definition at line 163 of file PointIndexHit.H.
References p.
Referenced by triSurfaceTools::classify(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::findNearest(), indexedOctree< Foam::treeDataFace >::findNearest(), mappedPatchBase::findSamples(), and searchableCylinder::points().
|
inline |
Definition at line 168 of file PointIndexHit.H.
References PointIndexHit< Point >::index().
Referenced by triSurfaceTools::classify(), searchableBox::findLine(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::findNearest(), indexedOctree< Foam::treeDataFace >::findNearest(), searchableBox::findNearestOnEdge(), meshSearch::intersection(), meshSearch::intersections(), NamedEnum< compressibleField, 8 >::names(), and searchableCylinder::points().
|
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.