Go to the documentation of this file.
45 streamOpt.
format(IOstream::ASCII);
54 ? surfaceFormatsCore::oneZone(faceLst)
58 const bool useFaceMap = (surf.
useFaceMap() && zones.size() > 1);
64 <<
"Cannot write file " << filename <<
nl
70 os <<
"# tetgen .smesh file written " << clock::dateTime().c_str() <<
nl
71 <<
"# <points count=\"" << pointLst.
size() <<
"\">" <<
nl
72 << pointLst.
size() <<
" 3" <<
nl;
77 const point& pt = pointLst[pti];
79 os << pti <<
' ' << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
nl;
81 os <<
"# </points>" <<
nl
83 <<
"# <faces count=\"" << faceLst.
size() <<
"\">" <<
endl;
93 for (label nLocal =
zone.size(); nLocal--; ++faceIndex)
96 (useFaceMap ?
faceMap[faceIndex] : faceIndex);
98 const Face&
f = faceLst[facei];
101 for (
const label verti :
f)
105 os <<
' ' << zoneIndex <<
nl;
113 os <<
"# </faces>" <<
nl
115 <<
"# no holes or regions:" <<
nl
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
Ostream & endl(Ostream &os)
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