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... | |
![]() | |
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) |
Private Attributes | |
triPointRef::proxType | elementType_ |
label | triangle_ |
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 60 of file surfaceLocation.H.
|
inline |
Construct null.
Definition at line 76 of file surfaceLocation.H.
|
inline |
Construct from components.
Definition at line 85 of file surfaceLocation.H.
|
inline |
Construct from Istream.
Definition at line 97 of file surfaceLocation.H.
|
inline |
Definition at line 107 of file surfaceLocation.H.
References surfaceLocation::elementType_.
Referenced by triSurfaceTools::classify(), triSurfaceTools::snapToEnd(), triSurfaceTools::trackToEdge(), and triSurfaceTools::visitFaces().
|
inline |
Definition at line 112 of file surfaceLocation.H.
References surfaceLocation::elementType_.
Definition at line 117 of file surfaceLocation.H.
References surfaceLocation::triangle_.
Referenced by triSurfaceTools::track(), triSurfaceTools::trackToEdge(), and triSurfaceTools::visitFaces().
Definition at line 122 of file surfaceLocation.H.
References surfaceLocation::triangle_.
Foam::vector normal | ( | const triSurface & | s | ) | const |
Normal. Approximate for points.
Definition at line 31 of file surfaceLocation.C.
References triangle::EDGE, surfaceLocation::elementType_, forAll, PointIndexHit< Point >::index(), Foam::mag(), n, triangle::NONE, s(), List::size(), and Vector< scalar >::zero.
|
inline |
Return info proxy.
Used to print token information to a stream
Definition at line 132 of file surfaceLocation.H.
void write | ( | Ostream & | os, |
const triSurface & | s | ||
) | const |
Write info to os.
Definition at line 67 of file surfaceLocation.C.
References Foam::e, triangle::EDGE, triangle::NONE, and s().
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 66 of file surfaceLocation.H.
Referenced by surfaceLocation::elementType(), and surfaceLocation::normal().
|
private |
Definition at line 68 of file surfaceLocation.H.
Referenced by surfaceLocation::triangle().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.