Go to the documentation of this file.
71 int main(
int argc,
char *argv[])
75 "import from various third-party surface formats into surfMesh"
84 "perform some surface checking/cleanup on the input surface"
90 "specify an alternative surface name when writing - "
91 "default is 'default'"
97 "geometry scaling factor on input - default is 1"
103 "geometry scaling factor on output - default is 1"
110 "specify a local coordinate system when reading files."
116 "specify a local coordinate system when writing files."
131 runTime.setTime(
instant(0, runTime.constant()), 0);
163 ?
dictPath/coordinateSystems::typeName
179 coordinateSystems::typeName,
190 if (!ioPtr->headerOk())
193 << ioPtr->objectPath() <<
nl
203 const label csIndex = csLst.findIndex(csName);
207 <<
"Cannot find -from " << csName <<
nl
208 <<
"available coordinateSystems: " << csLst.toc() <<
nl
219 const label csIndex = csLst.findIndex(csName);
223 <<
"Cannot find -to " << csName <<
nl
224 <<
"available coordinateSystems: " << csLst.toc() <<
nl
253 Info<<
" -scaleIn " << scaleIn <<
endl;
254 surf.scalePoints(scaleIn);
257 if (fromCsys.
valid())
259 Info<<
" -from " << fromCsys().name() <<
endl;
261 surf.movePoints(tpf());
266 Info<<
" -to " << toCsys().name() <<
endl;
268 surf.movePoints(tpf());
274 Info<<
" -scaleOut " << scaleOut <<
endl;
275 surf.scalePoints(scaleOut);
290 Info<<
"writing surfMesh:\n " << smesh.objectPath() <<
endl;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
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.
A surface mesh consisting of general polygon faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual Ostream & write(const token &)=0
Write next token to stream.
void set(T *)
Set pointer to that given.
int main(int argc, char *argv[])
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
Provides a centralized coordinateSystem collection.
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
An instant of time. Contains the time value and name.
void size(const label)
Override size to be inconsistent with allocated storage.
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.