44 streamOpt.
format(IOstream::ASCII);
54 ? surfaceFormatsCore::oneZone(faceLst,
word::null)
64 <<
"Cannot write file " << filename <<
nl
76 " <IndexedFaceSet coordIndex='\n";
81 const label nLocalFaces =
zone.
size();
85 for (label i=0; i<nLocalFaces; ++i)
87 const Face&
f = faceLst[
faceMap[faceIndex++]];
89 for (
const label vrti :
f)
98 for (label i=0; i<nLocalFaces; ++i)
100 const Face&
f = faceLst[faceIndex++];
102 for (
const label vrti :
f)
114 writePoints(
os, pointLst);
117 " </IndexedFaceSet>\n";
The IOstreamOption is a simple container for options an IOstream can normally have.
streamFormat format() const noexcept
Get the current stream format.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const UList< surfZone > & surfZones() const
Const access to the surface zones.
const UList< Face > & surfFaces() const
Return const access to the faces.
bool useFaceMap() const
Can/should use faceMap?
const pointField & points() const
Return const access to the points.
const labelUList & faceMap() const
Const access to the faceMap, zero-sized when unused.
Output to file stream, using an OSstream.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
virtual bool write()
Write the output fields.
A surface zone on a MeshedSurface.
Base class for mesh zones.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)