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