Go to the documentation of this file.
48 int main(
int argc,
char *argv[])
52 "Set face normals consistent with a user-provided 'outside' point"
63 "Treat provided point as being inside"
68 "Determine orientation by counting number of intersections"
74 "Input geometry scaling factor"
83 const bool orientInside =
args.
found(
"inside");
84 const bool usePierceTest =
args.
found(
"usePierceTest");
86 Info<<
"Reading surface from " << surfFileName <<
nl
87 <<
"Orienting surface such that visiblePoint " << visiblePoint
102 Info<<
"Input scaling: " << scaling <<
nl;
108 bool anyFlipped =
false;
134 Info<<
"Flipped orientation of (part of) surface." <<
nl;
138 Info<<
"Did not flip orientation of any triangle of surface." <<
nl;
141 Info<<
"Writing new surface to " << outFileName <<
endl;
143 surf.
write(outFileName);
A class for handling file names.
T getOrDefault(const word &optName, const T &deflt) const
Get a value from the named option if present, or return default.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const label index) const
Get a value from the argument at index.
Helper class to search on triSurface.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
Triangulated surface description with patch information.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
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 void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Foam::argList args(argc, argv)
bool found(const word &optName) const
Return true if the named option is found.