Go to the documentation of this file.
70 int main(
int argc,
char *argv[])
74 "convert between surface formats"
84 "perform some surface checking/cleanup on the input surface"
90 "geometry scaling factor on input"
96 "geometry scaling factor on output"
103 "specify the source coordinate system, applied after '-scaleIn'"
109 "specify the target coordinate system, applied before '-scaleOut'"
114 "triangulate surface"
125 if (importName == exportName)
128 <<
"Output file " << exportName <<
" would overwrite input file."
197 if (!csDictIoPtr->headerOk())
200 << csDictIoPtr->objectPath() <<
nl
210 const label csIndex = csLst.findIndex(csName);
214 <<
"Cannot find -from " << csName <<
nl
215 <<
"available coordinateSystems: " << csLst.toc() <<
nl
226 const label csIndex = csLst.findIndex(csName);
230 <<
"Cannot find -to " << csName <<
nl
231 <<
"available coordinateSystems: " << csLst.toc() <<
nl
259 Info<<
" -scaleIn " << scaleIn <<
endl;
260 surf.scalePoints(scaleIn);
264 if (fromCsys.
valid())
266 Info<<
" -from " << fromCsys().name() <<
endl;
268 surf.movePoints(tpf());
273 Info<<
" -to " << toCsys().name() <<
endl;
275 surf.movePoints(tpf());
281 Info<<
" -scaleOut " << scaleOut <<
endl;
282 surf.scalePoints(scaleOut);
291 Info<<
"writing " << exportName;
292 surf.write(exportName);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
A class for handling file names.
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.
A class for managing temporary objects.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & rootPath() const
Return root path.
const word dictName("particleTrackDict")
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void set(T *)
Set pointer to that given.
int main(int argc, char *argv[])
Provides a centralized coordinateSystem collection.
word ext() const
Return file name extension (part after last .)
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
bool valid() const
Return true if the autoPtr valid (ie, the pointer is set).
bool optionFound(const word &opt) const
Return true if the named option is found.
void reset(T *=0)
If object pointer already set, delete object and set to given.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
static void noParallel()
Remove the parallel options.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Base class for other coordinate system specifications.