Contains information about location on a triSurface: More...
#include <meshTools/surfaceLocation.H>
Contains information about location on a triSurface:
Definition at line 62 of file surfaceLocation.H.
Inheritance diagram for surfaceLocation:
Collaboration diagram for surfaceLocation:Public Member Functions | |
| surfaceLocation () | |
| Construct null.
| |
| surfaceLocation (const pointIndexHit &pih, const triPointRef::proxType elementType, const label triangle) | |
| Construct from components.
| |
| surfaceLocation (Istream &is) | |
| Construct from Istream.
| |
| triPointRef::proxType & | elementType () |
| triPointRef::proxType | elementType () const |
| label & | triangle () |
| label | triangle () const |
| vector | normal (const triSurface &s) const |
| Normal. Approximate for points.
| |
| InfoProxy< surfaceLocation > | info () const |
| Return info proxy.
| |
| void | write (Ostream &os, const triSurface &s) const |
| Write info to os.
| |
Friends | |
| Istream & | operator>> (Istream &is, surfaceLocation &sl) |
| Ostream & | operator<< (Ostream &os, const surfaceLocation &sl) |
| Ostream & | operator<< (Ostream &, const InfoProxy< surfaceLocation > &) |
| surfaceLocation | ( | ) | [inline]
|
Construct null.
Definition at line 78 of file surfaceLocation.H.
| surfaceLocation | ( | const pointIndexHit & | pih, |
| const triPointRef::proxType | elementType, | ||
| const label | triangle | ||
| ) | [inline]
|
Construct from components.
Definition at line 87 of file surfaceLocation.H.
| surfaceLocation | ( | Istream & | is ) | [inline]
|
Construct from Istream.
Definition at line 99 of file surfaceLocation.H.
| triPointRef::proxType& elementType | ( | ) | [inline]
|
Definition at line 109 of file surfaceLocation.H.
Referenced by triSurfaceTools::classify(), and triSurfaceTools::trackToEdge().
| triPointRef::proxType elementType | ( | ) | const [inline]
|
Definition at line 114 of file surfaceLocation.H.
| label& triangle | ( | ) | [inline]
|
Definition at line 119 of file surfaceLocation.H.
Referenced by triSurfaceTools::track(), and triSurfaceTools::trackToEdge().
| label triangle | ( | ) | const [inline]
|
Definition at line 124 of file surfaceLocation.H.
| Foam::vector normal | ( | const triSurface & | s ) | const |
Normal. Approximate for points.
Definition at line 40 of file surfaceLocation.C.
References triangle< Point, PointRef >::EDGE, PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceNormals(), forAll, PointIndexHit< Point >::index(), Foam::mag(), triangle< Point, PointRef >::NONE, PrimitivePatch< Face, FaceList, PointField, PointType >::pointNormals(), List< T >::size(), and Vector< Cmpt >::zero.
| InfoProxy<surfaceLocation> info | ( | ) | const [inline]
|
Return info proxy.
Used to print token information to a stream
Definition at line 134 of file surfaceLocation.H.
| void write | ( | Ostream & | os, |
| const triSurface & | s | ||
| ) | const |
Write info to os.
Definition at line 82 of file surfaceLocation.C.
References e, triangle< Point, PointRef >::EDGE, PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), edge::line(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), triangle< Point, PointRef >::NONE, and PrimitivePatch< Face, FaceList, PointField, PointType >::points().
| Istream& operator>> | ( | Istream & | is, |
| surfaceLocation & | sl | ||
| ) | [friend]
|
| Ostream& operator<< | ( | Ostream & | os, |
| const surfaceLocation & | sl | ||
| ) | [friend]
|
| Ostream& operator<< | ( | Ostream & | , |
| const InfoProxy< surfaceLocation > & | |||
| ) | [friend]
|