55 ? surfaceFormatsCore::oneZone(faceLst)
66 <<
"Cannot open file for writing " << filename
72 os <<
"# tetgen .smesh file written " << clock::dateTime().c_str() <<
nl 73 <<
"# <points count=\"" << pointLst.
size() <<
"\">" <<
nl 74 << pointLst.
size() <<
" 3" <<
nl;
79 const point& pt = pointLst[ptI];
81 os << ptI <<
' ' << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
nl;
83 os <<
"# </points>" <<
nl 85 <<
"# <faces count=\"" << faceLst.
size() <<
"\">" <<
endl;
87 os << faceLst.
size() <<
" 1" <<
endl;
99 const Face&
f = faceLst[faceMap[faceIndex++]];
106 os <<
' ' << zoneI <<
endl;
111 forAll(zones[zoneI], localFacei)
113 const Face&
f = faceLst[faceIndex++];
120 os <<
' ' << zoneI <<
endl;
127 os <<
"# </faces>" <<
nl 129 <<
"# no holes or regions:" <<
nl #define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A surface zone on a MeshedSurface.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool good() const
Return true if next operation might succeed.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
bool useFaceMap() const
Use faceMap?
const List< Face > & faces() const
Return const access to the faces.
const List< surfZone > & surfZones() const
Const access to the surface zones.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
const pointField & points() const
Return const access to the points.
const List< label > & faceMap() const
Const access to the faceMap, zero-sized when unused.