Go to the documentation of this file.
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);
A class for handling file names.
T getOrDefault(const word &optName, const T &deflt) const
static void addNote(const string ¬e)
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
T get(const label index) const
static void addArgument(const string &argName, const string &usage="")
Triangulated surface description with patch information.
virtual bool write(const token &tok)=0
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)