Go to the documentation of this file.
51 <<
"Cannot determine format from filename" <<
nl
58 else if (fileType ==
"gz")
62 return New(unzipName, unzipName.ext());
79 if (fileType ==
"ftr")
87 else if (fileType ==
"stl")
94 else if (fileType ==
"stlb")
98 surf->readSTL(
name,
true);
105 if (proxyType::readTypes().
found(fileType))
117 if (proxyType::readTypes().
found(fileType))
128 <<
"Unknown surface format " << fileType
129 <<
" for reading file " <<
name <<
nl
130 <<
"Valid types:" <<
nl
149 return New(unzipName, unzipName.ext());
word lessExt() const
Return word without extension (part before last .)
A class for handling words, derived from Foam::string.
A class for handling file names.
Input from file stream, using an ISstream.
word ext() const
Return file name extension (part after last .)
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
word name(const complex &c)
Return string representation of complex.
static autoPtr< triSurface > New(const fileName &name, const word &fileType)
Read construct from filename with given file type.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Input/output from file streams.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...