69 int main(
int argc,
char *argv[])
73 "import from various third-party surface formats into surfMesh" 82 "perform some surface checking/cleanup on the input surface" 88 "specify an alternative surface name when writing - " 89 "default is 'default'" 95 "geometry scaling factor on input - default is 1" 101 "geometry scaling factor on output - default is 1" 107 "specify a local coordinate system when reading files." 113 "specify a local coordinate system when writing files." 124 runTime.setTime(Times[startTime], startTime);
128 runTime.setTime(
instant(0, runTime.constant()), 0);
153 fromCsys = csLst[csName].clone();
159 toCsys = csLst[csName].clone();
175 Info<<
" -scaleIn " << scaleIn <<
endl;
176 surf.scalePoints(scaleIn);
179 if (fromCsys.
valid())
181 Info<<
" -from " << fromCsys().name() <<
endl;
183 surf.movePoints(tpf());
188 Info<<
" -to " << toCsys().name() <<
endl;
190 surf.movePoints(tpf());
196 Info<<
" -scaleOut " << scaleOut <<
endl;
197 surf.scalePoints(scaleOut);
212 Info<<
"writing surfMesh:\n " << smesh.relativeObjectPath() <<
endl;
Provides a centralised coordinateSystem collection.
virtual Ostream & write(const char)=0
Write character.
A class for handling file names.
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.
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.
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.
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...
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...