70 int main(
int argc,
char *argv[])
74 const wordList supportedTransformations
76 {
"translate",
"rotate",
"Rx",
"Ry",
"Rz",
"Ra",
"scale"}
81 supportedTransformationsStr << supportedTransformations <<
endl;
85 "Transforms a surface e.g.\n" 86 "surfaceTransformPoints " 87 "\"translate=(-0.586 0 -0.156), " 89 "translate=(0.586 0 0.156)\" " 90 "surf.stl tranformedSurf.obj\n\n" 91 "Supported transformations " + supportedTransformationsStr.
str()
102 const string transformationString(
args[1]);
108 Info<<
"Reading surf from " << surfFileName <<
" ..." <<
nl 109 <<
"Writing surf to " << outFileName <<
" ..." <<
endl;
115 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. ...
string str() const
Return the string.
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)
Output to memory buffer stream.