Provide a means of reading/writing Alias/Wavefront OBJ format. More...
#include <surfMesh/OBJsurfaceFormat.H>
Provide a means of reading/writing Alias/Wavefront OBJ format.
Does not handle negative face indices.
Definition at line 56 of file OBJsurfaceFormat.H.
 Inheritance diagram for OBJsurfaceFormat< Face >:
 Inheritance diagram for OBJsurfaceFormat< Face >: Collaboration diagram for OBJsurfaceFormat< Face >:
 Collaboration diagram for OBJsurfaceFormat< Face >:| Public Member Functions | |
| OBJsurfaceFormat (const fileName &) | |
| Construct from file name. | |
| virtual | ~OBJsurfaceFormat () | 
| virtual bool | read (const fileName &) | 
| Read from file. | |
| virtual void | write (const fileName &name) const | 
| Write object file. | |
| 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. | |
| OBJsurfaceFormat | ( | const fileName & | filename ) | 
Construct from file name.
Definition at line 38 of file OBJsurfaceFormat.C.
| virtual ~OBJsurfaceFormat | ( | ) |  [inline, virtual] | 
Definition at line 91 of file OBJsurfaceFormat.H.
| static autoPtr<MeshedSurface<Face> > New | ( | const fileName & | name ) |  [inline, static] | 
Read file and return surface.
Reimplemented from MeshedSurface< Face >.
Definition at line 80 of file OBJsurfaceFormat.H.
References Foam::name().
| void write | ( | const fileName & | filename, | 
| const MeshedSurfaceProxy< Face > & | surf | ||
| ) |  [static] | 
Write surface mesh components by proxy.
Definition at line 215 of file OBJsurfaceFormat.C.
References Foam::endl(), Foam::exit(), f(), MeshedSurfaceProxy< Face >::faceMap(), MeshedSurfaceProxy< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), fileName::lessExt(), surfZoneIdentifier::name(), fileName::name(), OFstream::name(), Foam::nl, MeshedSurfaceProxy< Face >::points(), List< T >::size(), MeshedSurfaceProxy< Face >::surfZones(), MeshedSurfaceProxy< Face >::useFaceMap(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by OBJsurfaceFormat< Face >::write().
| bool read | ( | const fileName & | filename ) |  [virtual] | 
Read from file.
Reimplemented from MeshedSurface< Face >.
Definition at line 50 of file OBJsurfaceFormat.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), clear(), HashTable< T, Key, Hash >::end(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), HashTable< T, Key, Hash >::find(), IOstream::good(), HashTable< T, Key, Hash >::insert(), name(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink(), UList< T >::size(), List< T >::size(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::transfer(), triFace(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::xfer(), and y.
| virtual void write | ( | const fileName & | name ) | const  [inline, virtual] | 
Write object file.
Reimplemented from MeshedSurface< Face >.
Definition at line 104 of file OBJsurfaceFormat.H.
References OBJsurfaceFormat< Face >::write().