Go to the documentation of this file.
50 ? surfaceFormatsCore::oneZone(faceLst)
54 const bool useFaceMap = (surf.
useFaceMap() && zones.size() > 1);
60 <<
"Cannot open file for writing " << filename
66 os <<
"# tetgen .smesh file written " << clock::dateTime().c_str() <<
nl
67 <<
"# <points count=\"" << pointLst.
size() <<
"\">" <<
nl
68 << pointLst.
size() <<
" 3" <<
nl;
73 const point& pt = pointLst[pti];
75 os << pti <<
' ' << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
nl;
77 os <<
"# </points>" <<
nl
79 <<
"# <faces count=\"" << faceLst.
size() <<
"\">" <<
endl;
81 os << faceLst.
size() <<
" 1" <<
endl;
92 for (
label i=0; i<nLocalFaces; ++i)
94 const Face&
f = faceLst[
faceMap[faceIndex++]];
97 for (
const label verti :
f)
101 os <<
' ' << zoneIndex <<
nl;
106 for (
label i=0; i<nLocalFaces; ++i)
108 const Face&
f = faceLst[faceIndex++];
111 for (
const label verti :
f)
115 os <<
' ' << zoneIndex <<
nl;
124 os <<
"# </faces>" <<
nl
126 <<
"# no holes or regions:" <<
nl
const Cmpt & x() const
Access to the vector x component.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling file names.
bool useFaceMap() const
Use faceMap?
Base class for mesh zones.
const pointField & points() const
Return const access to the points.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
const Cmpt & z() const
Access to the vector z component.
const labelUList & faceMap() const
Const access to the faceMap, zero-sized when unused.
#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 list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
Output to file stream, using an OSstream.
const Cmpt & y() const
Access to the vector y component.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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...
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
const UList< Face > & surfFaces() const
Return const access to the faces.
bool good() const
Return true if next operation might succeed.
const UList< surfZone > & surfZones() const
Const access to the surface zones.