Go to the documentation of this file.
44 streamOpt.
format(IOstream::ASCII);
54 ? surfaceFormatsCore::oneZone(faceLst, word::null)
58 const bool useFaceMap = (surf.
useFaceMap() && zones.size() > 1);
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";
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling file names.
Base class for mesh zones.
streamFormat format() const noexcept
const pointField & points() const
static void writeHeader(Ostream &os, const word &fieldName)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const labelUList & faceMap() const
The IOstreamOption is a simple container for options an IOstream can normally have.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A surface zone on a MeshedSurface.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const UList< Face > & surfFaces() const
const UList< surfZone > & surfZones() const