70 int main(
int argc,
char *argv[])
76 "Transforms a surface geometry " 77 "by translation, rotation and/or scaling.\n" 78 "The <transformations> are listed comma-separated in a string " 79 "and executed in sequence.\n\n" 81 " translate=<vector> " 82 "translation by vector, e.g. (1 2 3)\n" 83 " rotate=(<n1> <n2>) " 84 "rotation from unit vector n1 to n2\n" 86 "rotation by given angle [deg], e.g. 90, about x-axis\n" 88 "rotation by given angle [deg] about y-axis\n" 90 "rotation by given angle [deg] about z-axis\n" 91 " Ra=<axis vector> <angle> " 92 "rotation by given angle [deg] about specified axis\n" 94 "scale by factors from vector in x, y, z directions,\n" 96 "e.g. (0.001 0.001 0.001) to scale from mm to m\n\n" 98 " surfaceTransformPoints \"translate=(1.2 0 0), Rx=90\" " 109 const string transformationString(
args[1]);
115 Info<<
"Reading surf from " << surfFileName <<
" ..." <<
nl 116 <<
"Writing surf to " << outFileName <<
" ..." <<
endl;
122 surf1.write(outFileName);
A class for handling file names.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Extract command arguments and options from the supplied argc and argv parameters. ...
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)