60 int main(
int argc,
char *argv[])
64 "convert between surface formats" 74 "perform some surface checking/cleanup on the input surface" 79 "reorder faces into groups; one per region" 85 "geometry scaling factor - default is 1" 91 "write to output with the specified precision" 103 Info<<
"Output write precision set to " << writePrecision <<
endl;
109 if (importName == exportName)
112 <<
"Output file " << exportName <<
" would overwrite input file." 116 Info<<
"Reading : " << importName <<
endl;
120 surf.writeStats(
Info);
125 Info<<
"Cleaning up surface" <<
endl;
128 Info<<
"After cleaning up surface:" <<
endl;
129 surf.writeStats(
Info);
136 Info<<
"Reordering faces into groups; one per region." <<
endl;
140 Info<<
"Maintaining face ordering" <<
endl;
143 Info<<
"writing " << exportName;
145 scalar scaleFactor = 0;
148 Info<<
" with scaling " << scaleFactor;
149 surf.scalePoints(scaleFactor);
153 surf.
write(exportName, sortByRegion);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
T optionRead(const word &opt) const
Read a value from the named option.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static unsigned int defaultPrecision()
Return the default precision.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
OSstream Sout(cout,"Sout")
virtual int precision() const
Get precision of output field.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
bool optionFound(const word &opt) const
Return true if the named option is found.
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.
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.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)