Provide a means of reading/writing AC3D format. More...
#include <surfMesh/AC3DsurfaceFormat.H>
Provide a means of reading/writing AC3D format.
http://www.inivis.com/ac3d/man/ac3dfileformat.html
Definition at line 62 of file AC3DsurfaceFormat.H.
Public Member Functions | |
AC3DsurfaceFormat (const fileName &) | |
Construct from file name.
| |
virtual | ~AC3DsurfaceFormat () |
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, the output is always sorted by zones.
|
AC3DsurfaceFormat | ( | const fileName & | filename ) |
Construct from file name.
Definition at line 36 of file AC3DsurfaceFormat.C.
virtual ~AC3DsurfaceFormat | ( | ) | [inline, virtual]
|
Definition at line 98 of file AC3DsurfaceFormat.H.
static autoPtr<MeshedSurface<Face> > New | ( | const fileName & | name ) | [inline, static]
|
Read file and return surface.
Reimplemented from MeshedSurface< Face >.
Definition at line 87 of file AC3DsurfaceFormat.H.
References Foam::name().
void write | ( | const fileName & | filename, |
const MeshedSurfaceProxy< Face > & | surf | ||
) | [static]
|
Write surface mesh components by proxy.
Definition at line 277 of file AC3DsurfaceFormat.C.
References Foam::endl(), Foam::exit(), f(), MeshedSurfaceProxy< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), surfZoneIdentifier::name(), Foam::nl, PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), MeshedSurfaceProxy< Face >::points(), surfZone::size(), List< T >::size(), surfZone::start(), MeshedSurfaceProxy< Face >::surfZones(), MeshedSurfaceProxy< Face >::useFaceMap(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by AC3DsurfaceFormat< Face >::write().
void write | ( | const fileName & | filename, |
const UnsortedMeshedSurface< Face > & | surf | ||
) | [static]
|
Write UnsortedMeshedSurface, the output is always sorted by zones.
Definition at line 372 of file AC3DsurfaceFormat.C.
References Foam::endl(), Foam::exit(), f(), MeshedSurface< Face >::faces(), Foam::FatalError, FatalErrorIn, forAll, IOstream::good(), PrimitivePatch< Face,::Foam::List, pointField, point >::localFaces(), PrimitivePatch< Face,::Foam::List, pointField, point >::localPoints(), surfZoneIdentifier::name(), Foam::nl, PrimitivePatch< Face,::Foam::List, pointField, point >::nPoints(), PrimitivePatch< Face,::Foam::List, pointField, point >::points(), UnsortedMeshedSurface< Face >::size(), List< T >::size(), UnsortedMeshedSurface< Face >::sortedZones(), UnsortedMeshedSurface< Face >::subsetMesh(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
bool read | ( | const fileName & | filename ) | [virtual]
|
Read from file.
Reimplemented from MeshedSurface< Face >.
Definition at line 48 of file AC3DsurfaceFormat.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), args, clear(), Foam::endl(), Foam::exit(), f(), Foam::FatalError, FatalErrorIn, UList< T >::fcIndex(), forAll, ISstream::getLine(), IOstream::good(), Foam::name(), Foam::readCmd(), UList< T >::size(), triFace(), WarningIn, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Write object.
Reimplemented from MeshedSurface< Face >.
Definition at line 114 of file AC3DsurfaceFormat.H.
References AC3DsurfaceFormat< Face >::write().