Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles. More...
#include <surfMesh/GTSsurfaceFormat.H>
Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles.
Definition at line 56 of file GTSsurfaceFormat.H.
Public Member Functions | |
GTSsurfaceFormat (const fileName &) | |
Construct from file name.
| |
virtual | ~GTSsurfaceFormat () |
Destructor.
| |
virtual bool | read (const fileName &) |
Read from file.
| |
virtual void | write (const fileName &name) const |
Write object.
| |
Static Public Member Functions | |
static autoPtr < UnsortedMeshedSurface< Face > > | New (const fileName &name) |
Read file and return surface.
| |
static void | write (const fileName &, const MeshedSurface< Face > &) |
Write MeshedSurface.
| |
static void | write (const fileName &, const UnsortedMeshedSurface< Face > &) |
Write UnsortedMeshedSurface, the output remains unsorted.
|
GTSsurfaceFormat | ( | const fileName & | filename ) |
Construct from file name.
Definition at line 38 of file GTSsurfaceFormat.C.
virtual ~GTSsurfaceFormat | ( | ) | [inline, virtual]
|
Destructor.
Definition at line 90 of file GTSsurfaceFormat.H.
static autoPtr<UnsortedMeshedSurface<Face> > New | ( | const fileName & | name ) | [inline, static]
|
Read file and return surface.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 80 of file GTSsurfaceFormat.H.
References Foam::name().
void write | ( | const fileName & | filename, |
const MeshedSurface< Face > & | surf | ||
) | [static]
|
Write MeshedSurface.
Reimplemented from MeshedSurface< Face >.
Definition at line 225 of file GTSsurfaceFormat.C.
References PrimitivePatch< Face,::Foam::List, pointField, point >::edges(), UList< T >::end(), Foam::endl(), Foam::exit(), PrimitivePatch< Face,::Foam::List, pointField, point >::faceEdges(), MeshedSurface< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), PrimitivePatch< Face,::Foam::List, pointField, point >::meshPoints(), PrimitivePatch< Face,::Foam::List, pointField, point >::nEdges(), Foam::nl, PrimitivePatch< Face,::Foam::List, pointField, point >::points(), MeshedSurface< Face >::size(), List< T >::size(), MeshedSurface< Face >::surfZones(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by GTSsurfaceFormat< Face >::write().
void write | ( | const fileName & | filename, |
const UnsortedMeshedSurface< Face > & | surf | ||
) | [static]
|
Write UnsortedMeshedSurface, the output remains unsorted.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 340 of file GTSsurfaceFormat.C.
References PrimitivePatch< Face,::Foam::List, pointField, point >::edges(), UList< T >::end(), Foam::endl(), Foam::exit(), PrimitivePatch< Face,::Foam::List, pointField, point >::faceEdges(), MeshedSurface< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), PrimitivePatch< Face,::Foam::List, pointField, point >::meshPoints(), PrimitivePatch< Face,::Foam::List, pointField, point >::nEdges(), Foam::nl, PrimitivePatch< Face,::Foam::List, pointField, point >::points(), UnsortedMeshedSurface< Face >::size(), List< T >::size(), UnsortedMeshedSurface< Face >::zoneIds(), and UnsortedMeshedSurface< Face >::zoneToc().
bool read | ( | const fileName & | filename ) | [virtual]
|
Read from file.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 50 of file GTSsurfaceFormat.C.
References IOstream::bad(), clear(), edge::commonVertex(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), Foam::name(), Foam::nl, nPoints, edge::otherVertex(), List< T >::setSize(), triFace(), and y.
virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Write object.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 106 of file GTSsurfaceFormat.H.
References GTSsurfaceFormat< Face >::write().