42 int main(
int argc,
char *argv[])
46 "Convert between edgeMesh formats" 55 "geometry scaling factor - default is 1" 65 if (importName == exportName)
68 <<
"Output file " << exportName <<
" would overwrite input file." 84 Info<<
"\nRead edgeMesh " << importName <<
nl;
87 <<
"\nwriting " << exportName;
89 scalar scaleFactor = 0;
92 Info<<
" with scaling " << scaleFactor <<
endl;
93 mesh.scalePoints(scaleFactor);
A class for handling file names.
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
const fileName & rootPath() const
Return root path.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
Points connected by edges.
word ext() const
Return file name extension (part after last .)
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)
virtual bool write() const
Write mesh using IO settings from time.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format type?