42 int main(
int argc,
char *argv[])
46 "set face normals consistent with a user-provided 'outside' point" 56 "treat provided point as being inside" 61 "determine orientation by counting number of intersections" 73 Info<<
"Reading surface from " << surfFileName <<
nl 74 <<
"Orienting surface such that visiblePoint " << visiblePoint
92 bool anyFlipped =
false;
118 Info<<
"Flipped orientation of (part of) surface." <<
endl;
122 Info<<
"Did not flip orientation of any triangle of surface." <<
endl;
125 Info<<
"Writing new surface to " << outFileName <<
endl;
127 surf.
write(outFileName);
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static bool orient(triSurface &, const point &, const bool orientOutside)
Flip faces such that normals are consistent with point:
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Helper class to search on triSurface.
bool optionFound(const word &opt) const
Return true if the named option is found.
Extract command arguments and options from the supplied argc and argv parameters. ...
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.
static void addNote(const string &)
Add extra notes for the usage information.
Triangulated surface description with patch information.
Foam::argList args(argc, argv)