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