OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

STLsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing STL files (ASCII and binary). More...

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

List of all members.


Public Member Functions

 STLsurfaceFormat (const fileName &)
 Construct from file name.
virtual ~STLsurfaceFormat ()
 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 writeAscii (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write surface mesh components by proxy (as ASCII).
static void writeBinary (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write surface mesh components by proxy (as BINARY).
static void write (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write surface mesh components by proxy.
static void writeAscii (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write UnsortedMeshedSurface (as ASCII) sorted by zone.
static void writeBinary (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write UnsortedMeshedSurface (as BINARY) unsorted by zone.
static void write (const fileName &, const UnsortedMeshedSurface< Face > &)
 Write UnsortedMeshedSurface.

Detailed Description

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

Provide a means of reading/writing STL files (ASCII and binary).

Note:
For efficiency, the zones are sorted before creating the faces. The class is thus derived from MeshedSurface.
Source files

Definition at line 55 of file STLsurfaceFormat.H.


Constructor & Destructor Documentation

STLsurfaceFormat ( const fileName &  filename  )  [inline]

Construct from file name.

Definition at line 107 of file STLsurfaceFormat.C.

virtual ~STLsurfaceFormat (  )  [inline, virtual]

Destructor.

Definition at line 106 of file STLsurfaceFormat.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 96 of file STLsurfaceFormat.H.

void writeAscii ( const fileName &  filename,
const MeshedSurfaceProxy< Face > &  surf 
) [inline, static]

Write surface mesh components by proxy (as ASCII).

Definition at line 184 of file STLsurfaceFormat.C.

Referenced by STLsurfaceFormat< Face >::write().

Here is the caller graph for this function:

void writeBinary ( const fileName &  filename,
const MeshedSurfaceProxy< Face > &  surf 
) [inline, static]

Write surface mesh components by proxy (as BINARY).

Definition at line 244 of file STLsurfaceFormat.C.

void write ( const fileName &  filename,
const MeshedSurfaceProxy< Face > &  surf 
) [inline, static]

Write surface mesh components by proxy.

as ASCII or BINARY, depending on the extension

Definition at line 436 of file STLsurfaceFormat.C.

Referenced by STLsurfaceFormat< Face >::write().

Here is the caller graph for this function:

void writeAscii ( const fileName &  filename,
const UnsortedMeshedSurface< Face > &  surf 
) [inline, static]

Write UnsortedMeshedSurface (as ASCII) sorted by zone.

Definition at line 330 of file STLsurfaceFormat.C.

void writeBinary ( const fileName &  filename,
const UnsortedMeshedSurface< Face > &  surf 
) [inline, static]

Write UnsortedMeshedSurface (as BINARY) unsorted by zone.

Definition at line 382 of file STLsurfaceFormat.C.

void write ( const fileName &  filename,
const UnsortedMeshedSurface< Face > &  surf 
) [inline, static]

Write UnsortedMeshedSurface.

as ASCII or BINARY, depending on the extension

Definition at line 457 of file STLsurfaceFormat.C.

References STLsurfaceFormat< Face >::writeAscii().

Here is the call graph for this function:

bool read ( const fileName &  filename  )  [inline, virtual]

Read from file.

Reimplemented from MeshedSurface< Face >.

Definition at line 119 of file STLsurfaceFormat.C.

virtual void write ( const fileName &  name  )  const [inline, virtual]

Write object.

Reimplemented from MeshedSurface< Face >.

Definition at line 156 of file STLsurfaceFormat.H.

References STLsurfaceFormat< Face >::write().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd