68 int main(
int argc,
char *argv[])
72 "convert between surface formats"
82 "perform some surface checking/cleanup on the input surface"
88 "geometry scaling factor on input"
94 "geometry scaling factor on output"
100 "specify the source coordinate system, applied after '-scaleIn'"
106 "specify the target coordinate system, applied before '-scaleOut'"
111 "triangulate surface"
122 if (importName == exportName)
125 <<
"Output file " << exportName <<
" would overwrite input file."
154 fromCsys = csLst[csName].clone();
160 toCsys = csLst[csName].clone();
176 Info<<
" -scaleIn " << scaleIn <<
endl;
177 surf.scalePoints(scaleIn);
181 if (fromCsys.
valid())
183 Info<<
" -from " << fromCsys().name() <<
endl;
185 surf.setPoints(tpf());
190 Info<<
" -to " << toCsys().name() <<
endl;
192 surf.setPoints(tpf());
198 Info<<
" -scaleOut " << scaleOut <<
endl;
199 surf.scalePoints(scaleOut);
208 Info<<
"writing " << exportName;
209 surf.write(exportName);
static coordinateSystems & New(const word &name, const objectRegistry &mesh)
Construct and return the named DemandDrivenMeshObject.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
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.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set)
Provides a centralised coordinateSystem collection.
A class for handling file names.
word ext() const
Return file name extension (part after last .)
A class for managing temporary objects.
A class for handling words, derived from string.
#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)