64 <<
"Cannot write file " << filename <<
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
A simple container for options an IOstream can normally have.
streamFormat format() const noexcept
Get the current stream format.
@ ASCII
"ascii" (normal default)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const UList< surfZone > & surfZones() const noexcept
Const access to the surface zones.
const UList< Face > & surfFaces() const noexcept
Return const access to the faces.
const labelUList & faceMap() const noexcept
Const access to the faceMap, zero-sized when unused.
const pointField & points() const noexcept
Return const access to the points.
bool useFaceMap() const noexcept
Can/should use faceMap?
Output to file stream as an OSstream, normally using std::ofstream for the actual output.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
const Cmpt & x() const noexcept
Access to the vector x component.
const Cmpt & z() const noexcept
Access to the vector z component.
const Cmpt & y() const noexcept
Access to the vector y component.
static std::string dateTime()
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss)...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
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)
List< surfZone > surfZoneList
List of surfZone.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vector point
Point is a vector.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.