Provide a means of reading/writing Geomview OFF polyList format. More...
#include <surfMesh/OFFsurfaceFormat.H>
Provide a means of reading/writing Geomview OFF polyList format.
Definition at line 64 of file OFFsurfaceFormat.H.
Public Member Functions | |
OFFsurfaceFormat (const fileName &) | |
Construct from file name.
| |
virtual | ~OFFsurfaceFormat () |
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.
|
OFFsurfaceFormat | ( | const fileName & | filename ) |
Construct from file name.
Definition at line 37 of file OFFsurfaceFormat.C.
virtual ~OFFsurfaceFormat | ( | ) | [inline, virtual]
|
Destructor.
Definition at line 98 of file OFFsurfaceFormat.H.
static autoPtr<MeshedSurface<Face> > New | ( | const fileName & | name ) | [inline, static]
|
Read file and return surface.
Reimplemented from MeshedSurface< Face >.
Definition at line 88 of file OFFsurfaceFormat.H.
void write | ( | const fileName & | filename, |
const MeshedSurfaceProxy< Face > & | surf | ||
) | [static]
|
Write surface mesh components by proxy.
Definition at line 152 of file OFFsurfaceFormat.C.
References Foam::endl(), Foam::exit(), f(), MeshedSurfaceProxy< Face >::faceMap(), MeshedSurfaceProxy< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), Foam::nl, MeshedSurfaceProxy< Face >::points(), List< T >::size(), MeshedSurfaceProxy< Face >::surfZones(), and MeshedSurfaceProxy< Face >::useFaceMap().
Referenced by OFFsurfaceFormat< Face >::write().
bool read | ( | const fileName & | filename ) | [virtual]
|
Read from file.
Reimplemented from MeshedSurface< Face >.
Definition at line 49 of file OFFsurfaceFormat.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), clear(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), forAll, IOstream::good(), nPoints, UList< T >::size(), triFace(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::xfer(), List< T >::xfer(), and y.
virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Write object.
Reimplemented from MeshedSurface< Face >.
Definition at line 111 of file OFFsurfaceFormat.H.
References OFFsurfaceFormat< Face >::write().