50 int main(
int argc,
char *argv[])
54 "Merge points on surface if they are within absolute distance [m]." 65 "Input geometry scaling factor" 71 const auto mergeTol =
args.
get<scalar>(2);
76 Info<<
"Reading surface from " << surfFileName <<
" ..." <<
nl 77 <<
"Merging points within " << mergeTol <<
" metre." <<
nl;
80 Info<<
"input scaling " << scaling <<
nl;
85 Info<<
"Original surface:" <<
nl;
86 surf1.writeStats(
Info);
92 const label nOldVert = cleanSurf.nPoints();
96 Info<<
"After merging points:" <<
endl;
98 cleanSurf.writeStats(
Info);
100 if (nOldVert == cleanSurf.nPoints())
106 cleanSurf.
write(outFileName);
static void addNote(const string ¬e)
Add extra notes for the usage information.
A class for handling file names.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
T get(const label index) const
Get a value from the argument at index.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Triangulated surface description with patch information.
Foam::argList args(argc, argv)