71 int main(
int argc,
char *argv[])
75 "convert between surface formats" 85 "perform some surface checking/cleanup on the input surface" 91 "geometry scaling factor on input" 97 "geometry scaling factor on output" 104 "specify the source coordinate system, applied after '-scaleIn'" 110 "specify the target coordinate system, applied before '-scaleOut'" 115 "triangulate surface" 126 if (importName == exportName)
129 <<
"Output file " << exportName <<
" would overwrite input file." 160 dictPath =
args[
"dict"];
201 <<
"Cannot open coordinateSystems file\n " 212 const label csIndex = csLst.findIndex(csName);
216 <<
"Cannot find -from " << csName <<
nl 217 <<
"available coordinateSystems: " << csLst.toc() <<
nl 228 const label csIndex = csLst.findIndex(csName);
232 <<
"Cannot find -to " << csName <<
nl 233 <<
"available coordinateSystems: " << csLst.toc() <<
nl 245 <<
"Only allowed '-from' or '-to' option at the moment." 262 Info<<
" -scaleIn " << scaleIn <<
endl;
263 surf.scalePoints(scaleIn);
267 if (fromCsys.
valid())
269 Info<<
" -from " << fromCsys().name() <<
endl;
271 surf.movePoints(tpf());
276 Info<<
" -to " << toCsys().name() <<
endl;
278 surf.movePoints(tpf());
284 Info<<
" -scaleOut " << scaleOut <<
endl;
285 surf.scalePoints(scaleOut);
294 Info<<
"writing " << exportName;
295 surf.write(exportName);
Base class for other coordinate system specifications.
fileName objectPath() const
Return complete path + object name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#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...
Provides a centralized coordinateSystem collection.
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.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
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)
void reset(T *=0)
If object pointer already set, delete object and set to given.
bool optionFound(const word &opt) const
Return true if the named option is found.
A class for handling words, derived from string.
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.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set).
void set(T *)
Set pointer to that given.
word dictName("noiseDict")
word ext() const
Return file name extension (part after last .)
bool headerOk()
Read and check header info.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the usage information.
A class for managing temporary objects.
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...