58 int main(
int argc,
char *argv[])
64 "convert between surface formats"
73 "perform some surface checking/cleanup on the input surface"
78 "reorder faces into groups; one per region"
84 "geometry scaling factor - default is 1"
90 "write to output with the specified precision"
102 Info<<
"Output write precision set to " << writePrecision <<
endl;
108 if (importName == exportName)
111 <<
"Output file " << exportName <<
" would overwrite input file."
115 Info<<
"Reading : " << importName <<
endl;
119 surf.writeStats(
Info);
124 Info<<
"Cleaning up surface" <<
endl;
127 Info<<
"After cleaning up surface:" <<
endl;
128 surf.writeStats(
Info);
135 Info<<
"Reordering faces into groups; one per region." <<
endl;
139 Info<<
"Maintaining face ordering" <<
endl;
142 Info<<
"writing " << exportName;
144 scalar scaleFactor = 0;
147 Info<<
" with scaling " << scaleFactor;
148 surf.scalePoints(scaleFactor);
152 surf.
write(exportName, sortByRegion);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
static unsigned int defaultPrecision()
Return the default precision.
virtual int precision() const
Get precision of output field.
virtual Ostream & write(const char)=0
Write character.
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.
static void addNote(const string &)
Add extra notes for the usage information.
T optionRead(const word &opt) const
Read a value from the named option.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling file names.
Triangulated surface description with patch information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int main(int argc, char *argv[])
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Sout(cout, "Sout")
Foam::argList args(argc, argv)