Contains information about location on a triSurface. More...
Public Member Functions | |
surfaceLocation () | |
Construct null. More... | |
surfaceLocation (const pointIndexHit &pih, const triPointRef::proxType elementType, const label triangle) | |
Construct from components. More... | |
surfaceLocation (Istream &is) | |
Construct from Istream. More... | |
triPointRef::proxType & | elementType () |
triPointRef::proxType | elementType () const |
label & | triangle () |
label | triangle () const |
vector | normal (const triSurface &s) const |
Normal. Approximate for points. More... | |
InfoProxy< surfaceLocation > | info () const |
Return info proxy. More... | |
void | write (Ostream &os, const triSurface &s) const |
Write info to os. More... | |
Public Member Functions inherited from PointIndexHit< Point > | |
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 | |
Istream & | operator>> (Istream &is, surfaceLocation &sl) |
Ostream & | operator<< (Ostream &os, const surfaceLocation &sl) |
Ostream & | operator<< (Ostream &, const InfoProxy< surfaceLocation > &) |
Contains information about location on a triSurface.
Definition at line 73 of file surfaceLocation.H.
|
inline |
Construct null.
Definition at line 89 of file surfaceLocation.H.
|
inline |
Construct from components.
Definition at line 98 of file surfaceLocation.H.
|
inline |
Construct from Istream.
Definition at line 110 of file surfaceLocation.H.
|
inline |
Definition at line 120 of file surfaceLocation.H.
Referenced by triSurfaceTools::classify(), Foam::operator<<(), triSurfaceTools::trackToEdge(), and surfaceLocation::write().
|
inline |
Definition at line 125 of file surfaceLocation.H.
Definition at line 130 of file surfaceLocation.H.
Referenced by Foam::operator<<(), triSurfaceTools::track(), and triSurfaceTools::trackToEdge().
Definition at line 135 of file surfaceLocation.H.
References surfaceLocation::info(), surfaceLocation::normal(), surfaceLocation::operator<<, surfaceLocation::operator>>, s(), and surfaceLocation::write().
Foam::vector normal | ( | const triSurface & | s | ) | const |
Normal. Approximate for points.
Definition at line 31 of file surfaceLocation.C.
References triangle< Point, PointRef >::EDGE, PrimitivePatch< FaceList, PointField >::edgeFaces(), PrimitivePatch< FaceList, PointField >::faceNormals(), forAll, PointIndexHit< Point >::index(), Foam::mag(), n, triangle< Point, PointRef >::NONE, PrimitivePatch< FaceList, PointField >::pointNormals(), List< T >::size(), and Foam::Zero.
Referenced by surfaceLocation::triangle().
|
inline |
Return info proxy.
Used to print token information to a stream
Definition at line 145 of file surfaceLocation.H.
Referenced by surfaceLocation::triangle().
void write | ( | Ostream & | os, |
const triSurface & | s | ||
) | const |
Write info to os.
Definition at line 67 of file surfaceLocation.C.
References Foam::e, triangle< Point, PointRef >::EDGE, PrimitivePatch< FaceList, PointField >::edges(), surfaceLocation::elementType(), PointIndexHit< Point >::index(), edge::line(), PrimitivePatch< FaceList, PointField >::localPoints(), triangle< Point, PointRef >::NONE, and PrimitivePatch< FaceList, PointField >::points().
Referenced by surfaceLocation::triangle().
|
friend |
Referenced by surfaceLocation::triangle().
|
friend |
Referenced by surfaceLocation::triangle().
|
friend |