Go to the documentation of this file.
58 int main(
int argc,
char *argv[])
62 "Refine by splitting all three edges of triangle"
71 "Number of refinement steps (default: 1)"
78 Info<<
"Reading surface from " << surfFileName <<
" ..." <<
endl;
82 Info<<
"Original surface:" <<
nl
83 <<
" triangles :" << surf.size() <<
nl
84 <<
" vertices(used):" << surf.nPoints() <<
endl;
91 Info<<
"Refining " << nsteps <<
" times" <<
flush;
93 for (label step = 0; step < nsteps; ++step)
105 Info<<
"Refined surface:" <<
nl
106 <<
" triangles :" << surf.size() <<
nl
107 <<
" vertices(used):" << surf.nPoints() <<
endl;
110 <<
"Writing refined surface to " << outFileName <<
" ..." <<
endl;
112 surf.
write(outFileName);
A class for handling file names.
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="")
Ostream & flush(Ostream &os)
Triangulated surface description with patch information.
virtual bool write(const token &tok)=0
static MinMax< T > ge(const T &minVal)
labelList identity(const label len, label start=0)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
T getCheckOrDefault(const word &optName, const T &deflt, const Predicate &pred) const