Go to the documentation of this file.
38 #include "triSurface.H"
50 int main(
int argc,
char *argv[])
60 "perform some surface checking/cleanup on the input surface"
69 Info<<
"Reading surface " << inFileName <<
nl
70 <<
"Collapsing all triangles with" <<
nl
71 <<
" edges or heights < " << minLen <<
nl
72 <<
" quality < " << minQuality <<
nl
73 <<
"Writing result to " << outFileName <<
nl <<
endl;
76 Info<<
"Reading surface from " << inFileName <<
" ..." <<
nl <<
endl;
78 surf.writeStats(
Info);
82 Info<<
"Removing duplicate and illegal triangles ..." <<
nl <<
endl;
86 Info<<
"Collapsing triangles to edges ..." <<
nl <<
endl;
92 if (nEdgeCollapse == 0)
108 <<
"Resulting surface:" <<
endl;
109 surf.writeStats(
Info);
112 <<
"Writing refined surface to " << outFileName <<
" ..." <<
endl;
113 surf.
write(outFileName);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling file names.
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.
Routines to collapse small edges.
int main(int argc, char *argv[])
Routines collapse sliver triangles by splitting the base edge.
label collapseBase(triSurface &surf, const scalar minLen, const scalar minQuality)
Keep collapsing all triangles whose height is < minLen or quality < minQ.
bool optionFound(const word &opt) const
Return true if the named option is found.
T argRead(const label index) const
Read a value from the argument at index.
label collapseEdge(triSurface &surf, const scalar minLen)
Keep collapsing all edges < minLen.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)