72 int main(
int argc,
char *argv[])
76 "import from various third-party surface formats into surfMesh" 85 "perform some surface checking/cleanup on the input surface" 91 "specify an alternative surface name when writing - " 92 "default is 'default'" 98 "geometry scaling factor on input - default is 1" 104 "geometry scaling factor on output - default is 1" 111 "specify a local coordinate system when reading files." 117 "specify a local coordinate system when writing files." 128 runTime.setTime(Times[startTime], startTime);
132 runTime.setTime(
instant(0, runTime.constant()), 0);
164 ? dictPath/coordinateSystems::typeName
180 coordinateSystems::typeName,
204 const label csIndex = csLst.findIndex(csName);
208 <<
"Cannot find -from " << csName <<
nl 209 <<
"available coordinateSystems: " << csLst.toc() <<
nl 220 const label csIndex = csLst.findIndex(csName);
224 <<
"Cannot find -to " << csName <<
nl 225 <<
"available coordinateSystems: " << csLst.toc() <<
nl 254 Info<<
" -scaleIn " << scaleIn <<
endl;
255 surf.scalePoints(scaleIn);
258 if (fromCsys.
valid())
260 Info<<
" -from " << fromCsys().name() <<
endl;
262 surf.movePoints(tpf());
267 Info<<
" -to " << toCsys().name() <<
endl;
269 surf.movePoints(tpf());
275 Info<<
" -scaleOut " << scaleOut <<
endl;
276 surf.scalePoints(scaleOut);
291 Info<<
"writing surfMesh:\n " << smesh.objectPath() <<
endl;
Base class for other coordinate system specifications.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool typeHeaderOk(const bool checkType=true)
Read header (uses typeFilePath to find file) and check header.
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...
void size(const label)
Override size to be inconsistent with allocated storage.
Provides a centralized coordinateSystem collection.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
void reset(T *=0)
If object pointer already set, delete object and set to given.
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
A class for handling words, derived from string.
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)
A surface mesh consisting of general polygon faces.
void set(T *)
Set pointer to that given.
An instant of time. Contains the time value and name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual Ostream & write(const token &)=0
Write next token to stream.
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...
fileName objectPath() const
Return complete path + object name.