58 ? surfaceFormatsCore::oneZone(faceLst,
"")
69 "fileFormats::X3DsurfaceFormat::write" 70 "(const fileName&, const MeshedSurfaceProxy<Face>&)" 72 <<
"Cannot open file for writing " << filename
89 " <IndexedFaceSet coordIndex='\n";
100 const Face&
f = faceLst[faceMap[faceIndex++]];
113 const Face&
f = faceLst[faceIndex++];
126 " <Coordinate point='\n";
131 const point& pt = pointLst[ptI];
133 os << pt.
x() <<
' ' << pt.
y() <<
' ' << pt.
z() <<
nl;
138 " </IndexedFaceSet>\n"
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
bool useFaceMap() const
Use faceMap?
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
static void write(const fileName &, const MeshedSurfaceProxy< Face > &)
Write surface mesh components by proxy.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Various functions to operate on Lists.
const pointField & points() const
Return const access to the points.
const List< Face > & faces() const
Return const access to the faces.
const List< surfZone > & surfZones() const
Const access to the surface zones.
bool good() const
Return true if next operation might succeed.
A surface zone on a MeshedSurface.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
A class for handling file names.
const List< label > & faceMap() const
Const access to the faceMap, zero-sized when unused.
X3DsurfaceFormat()
Construct null.