69 int main(
int argc,
char *argv[])
75 "Transforms a surface geometry "
76 "by translation, rotation and/or scaling.\n"
77 "The <transformations> are listed comma-separated in a string "
78 "and executed in sequence.\n\n"
80 " translate=<vector> "
81 "translation by vector, e.g. (1 2 3)\n"
82 " rotate=(<n1> <n2>) "
83 "rotation from unit vector n1 to n2\n"
85 "rotation by given angle [deg], e.g. 90, about x-axis\n"
87 "rotation by given angle [deg] about y-axis\n"
89 "rotation by given angle [deg] about z-axis\n"
90 " Ra=<axis vector> <angle> "
91 "rotation by given angle [deg] about specified axis\n"
93 "scale by factors from vector in x, y, z directions,\n"
95 "e.g. (0.001 0.001 0.001) to scale from mm to m\n\n"
97 " surfaceTransformPoints \"translate=(1.2 0 0), Rx=90\" "
108 const string transformationString(
args[1]);
114 Info<<
"Reading surf from " << surfFileName <<
" ..." <<
nl
115 <<
"Writing surf to " << outFileName <<
" ..." <<
endl;
121 surf1.write(outFileName);
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 noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling file names.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)