47 int main(
int argc,
char *argv[])
58 "perform some surface checking/cleanup on the input surface" 67 Info<<
"Reading surface " << inFileName <<
nl 68 <<
"Collapsing all triangles with" <<
nl 69 <<
" edges or heights < " << minLen <<
nl 70 <<
" quality < " << minQuality <<
nl 71 <<
"Writing result to " << outFileName <<
nl <<
endl;
74 Info<<
"Reading surface from " << inFileName <<
" ..." <<
nl <<
endl;
76 surf.writeStats(
Info);
80 Info<<
"Removing duplicate and illegal triangles ..." <<
nl <<
endl;
84 Info<<
"Collapsing triangles to edges ..." <<
nl <<
endl;
90 if (nEdgeCollapse == 0)
106 <<
"Resulting surface:" <<
endl;
107 surf.writeStats(
Info);
110 <<
"Writing refined surface to " << outFileName <<
" ..." <<
endl;
111 surf.
write(outFileName);
label collapseBase(triSurface &surf, const scalar minLen, const scalar minQuality)
Keep collapsing all triangles whose height is < minLen or quality < minQ.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
label collapseEdge(triSurface &surf, const scalar minLen)
Keep collapsing all edges < minLen.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Routines collapse sliver triangles by splitting the base edge.
Extract command arguments and options from the supplied argc and argv parameters. ...
Routines to collapse small edges.
T argRead(const label index) const
Read a value from the argument at index.
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.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)