51 <<
"Cannot determine format from filename" <<
nl 58 else if (fileType ==
"gz")
78 if (fileType ==
"ftr")
86 else if (fileType ==
"stl")
93 else if (fileType ==
"stlb")
97 surf->readSTL(
name,
true);
104 if (proxyType::readTypes().
found(fileType))
116 if (proxyType::readTypes().
found(fileType))
127 <<
"Unknown surface format " << fileType
128 <<
" for reading file " <<
name <<
nl 129 <<
"Valid types:" <<
nl A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
constexpr char nl
The newline '\n' character (0x0a)
bool found(const T &val, label pos=0) const
Same as contains()
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
word ext() const
Return file name extension (part after last .)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
bool has_ext() const
Various checks for extensions.
A class for handling words, derived from Foam::string.
word lessExt() const
Return word without extension (part before last .)
static autoPtr< triSurface > New(const fileName &name, const word &fileType)
Read construct from filename with given file type.
Input from file stream as an ISstream, normally using std::ifstream for the actual input...
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
static wordHashSet readTypes()
Known readable file-types, including via friends or proxies.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.