42 int main(
int argc,
char *argv[])
48 "set face normals consistent with a user-provided 'outside' point"
57 "treat provided point as being inside"
62 "determine orientation by counting number of intersections"
74 Info<<
"Reading surface from " << surfFileName <<
nl
75 <<
"Orienting surface such that visiblePoint " << visiblePoint
93 bool anyFlipped =
false;
119 Info<<
"Flipped orientation of (or part of) surface." <<
endl;
123 Info<<
"Did not flip orientation of any triangle of surface." <<
endl;
126 Info<<
"Writing new surface to " << outFileName <<
endl;
128 surf.
write(outFileName);
virtual Ostream & write(const char)=0
Write character.
Extract command arguments and options from the supplied argc and argv parameters.
static void addNote(const string &)
Add extra notes for the usage information.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
T argRead(const label index) const
Read a value from the argument at index.
A class for handling file names.
static bool orient(triSurface &, const point &, const bool orientOutside)
Flip faces such that normals are consistent with point:
Helper class to search on triSurface.
Triangulated surface description with patch information.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)