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
static void addNote(const string ¬e)
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
T get(const label index) const
Helper class to search on triSurface.
static void addArgument(const string &argName, const string &usage="")
Triangulated surface description with patch information.
virtual bool write(const token &tok)=0
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
static bool orient(triSurface &, const point &, const bool orientOutside)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
bool found(const word &optName) const