FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

OBJsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing Alias/Wavefront OBJ format. More...

#include <surfMesh/OBJsurfaceFormat.H>


Detailed Description

template<class Face>
class Foam::fileFormats::OBJsurfaceFormat< Face >

Provide a means of reading/writing Alias/Wavefront OBJ format.

Does not handle negative face indices.

Source files

Definition at line 56 of file OBJsurfaceFormat.H.

Inheritance diagram for OBJsurfaceFormat< Face >:
Collaboration diagram for OBJsurfaceFormat< Face >:

List of all members.

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.

Constructor & Destructor Documentation

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.


Member Function Documentation

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().

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().


The documentation for this class was generated from the following files: