Provide a means of reading/writing .tri format. More...
#include <surfMesh/TRIsurfaceFormat.H>
Provide a means of reading/writing .tri format.
Definition at line 59 of file TRIsurfaceFormat.H.
Inheritance diagram for TRIsurfaceFormat< Face >:
Collaboration diagram for TRIsurfaceFormat< Face >:Public Member Functions | |
| TRIsurfaceFormat (const fileName &) | |
| Construct from file name.
| |
| virtual | ~TRIsurfaceFormat () |
| Destructor.
| |
| virtual bool | read (const fileName &) |
| Read from file.
| |
| virtual void | write (const fileName &name) const |
| Write object.
| |
Static Public Member Functions | |
| static autoPtr< MeshedSurface < Face > > | New (const fileName &name) |
| Read file and return surface.
| |
| static void | write (const fileName &, const MeshedSurfaceProxy< Face > &) |
| Write surface mesh components by proxy.
| |
| static void | write (const fileName &, const UnsortedMeshedSurface< Face > &) |
| Write UnsortedMeshedSurface,.
| |
| TRIsurfaceFormat | ( | const fileName & | filename ) |
Construct from file name.
Definition at line 63 of file TRIsurfaceFormat.C.
| virtual ~TRIsurfaceFormat | ( | ) | [inline, virtual]
|
Destructor.
Definition at line 101 of file TRIsurfaceFormat.H.
| static autoPtr<MeshedSurface<Face> > New | ( | const fileName & | name ) | [inline, static]
|
Read file and return surface.
Reimplemented from MeshedSurface< Face >.
Definition at line 91 of file TRIsurfaceFormat.H.
References Foam::name().
| void write | ( | const fileName & | filename, |
| const MeshedSurfaceProxy< Face > & | surf | ||
| ) | [static]
|
Write surface mesh components by proxy.
Definition at line 130 of file TRIsurfaceFormat.C.
References Foam::exit(), MeshedSurfaceProxy< Face >::faceMap(), MeshedSurfaceProxy< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), MeshedSurfaceProxy< Face >::points(), List< T >::size(), MeshedSurfaceProxy< Face >::surfZones(), and MeshedSurfaceProxy< Face >::useFaceMap().
Referenced by TRIsurfaceFormat< Face >::write().
| void write | ( | const fileName & | filename, |
| const UnsortedMeshedSurface< Face > & | surf | ||
| ) | [static]
|
Write UnsortedMeshedSurface,.
by default the output is not sorted by zones
Definition at line 187 of file TRIsurfaceFormat.C.
References Foam::exit(), MeshedSurface< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), PrimitivePatch< Face,::Foam::List, pointField, point >::points(), List< T >::size(), UnsortedMeshedSurface< Face >::sortedZones(), UnsortedMeshedSurface< Face >::zoneIds(), and UnsortedMeshedSurface< Face >::zoneToc().
| bool read | ( | const fileName & | filename ) | [virtual]
|
Read from file.
Reimplemented from MeshedSurface< Face >.
Definition at line 75 of file TRIsurfaceFormat.C.
References clear(), forAll, TRIsurfaceFormatCore::points(), TRIsurfaceFormatCore::sizes(), TRIsurfaceFormatCore::sorted(), Foam::sortedOrder(), triFace(), List< T >::xfer(), and TRIsurfaceFormatCore::zoneIds().
| virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Write object.
Reimplemented from MeshedSurface< Face >.
Definition at line 118 of file TRIsurfaceFormat.H.
References TRIsurfaceFormat< Face >::write().