Go to the documentation of this file.
57 <<
"Cannot read file " << filename
62 is >> this->storedZones();
65 is >> this->storedPoints();
80 this->transcribe(surf);
85 is >> this->storedFaces();
160 read(is, pointLst, faceLst, zoneLst);
203 <<
"Cannot open file for writing " << filename
208 OFSsurfaceFormatCore::writeHeader(os, surf.
points(), surf.
surfZones());
215 os <<
"\n// faces:" <<
nl
216 << faceLst.
size() << token::BEGIN_LIST <<
nl;
229 os << token::END_LIST <<
nl;
233 os <<
"\n// faces:" <<
nl << faceLst <<
nl;
236 IOobject::writeDivider(os);
239 os.
check(
"OFSsurfaceFormat<Face>::write(Ostream&)");
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
bool useFaceMap() const
Use faceMap?
bool read(const char *, int32_t &)
const List< Face > & faces() const
Return const access to the faces.
const pointField & points() const
Return const access to the points.
const List< surfZone > & surfZones() const
Const access to the surface zones.
virtual void clear()
Clear all storage.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
virtual bool check(const char *operation) const
Check IOstream status for given operation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Xfer< T > xferMove(T &)
Construct by transferring the contents of the arg.
virtual void clear()
Clear all storage.
A surface zone on a MeshedSurface.
virtual void reset(const Xfer< pointField > &points, const Xfer< List< Face > > &faces, const Xfer< surfZoneList > &zones)
Reset primitive data (points, faces and zones)
void transcribe(MeshedSurface< face > &)
Transfer points/zones and transcribe face -> triFace.
Various functions to operate on Lists.
void size(const label)
Override size to be inconsistent with allocated storage.
bool good() const
Return true if next operation might succeed.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
void transfer(UnsortedMeshedSurface< Face > &)
Transfer the contents of the argument and annul the argument.
const List< label > & faceMap() const
Const access to the faceMap, zero-sized when unused.