44 streamOpt.
format(IOstreamOption::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";
void size(const label n)
Older name for setAddressableSize.
A class for handling file names.
static void writeHeader(Ostream &os, const word &fieldName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Output to file stream as an OSstream, normally using std::ofstream for the actual output...
A surface zone on a MeshedSurface.
constexpr char nl
The newline '\n' character (0x0a)
A simple container for options an IOstream can normally have.
const pointField & points() const noexcept
Return const access to the points.
const labelUList & faceMap() const noexcept
Const access to the faceMap, zero-sized when unused.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
bool useFaceMap() const noexcept
Can/should use faceMap?
Base class for mesh zones.
const UList< surfZone > & surfZones() const noexcept
Const access to the surface zones.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
OBJstream os(runTime.globalPath()/outputName)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
const UList< Face > & surfFaces() const noexcept
Return const access to the faces.
streamFormat format() const noexcept
Get the current stream format.