Go to the documentation of this file.
49 #include "triSurface.H"
59 int main(
int argc,
char *argv[])
63 "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);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
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.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Extract command arguments and options from the supplied argc and argv parameters.
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.
Triangulated surface description with patch information.
virtual Ostream & write(const token &)=0
Write next token to stream.
int main(int argc, char *argv[])
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual int precision() const
Get precision of output field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static unsigned int defaultPrecision()
Return the default precision.
T optionRead(const word &opt) const
Read a value from the named option.
bool optionFound(const word &opt) const
Return true if the named option is found.
OSstream Sout(cout, "Sout")
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.