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