diff --git a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C index 31cc3d37e0..6a3fdb0432 100644 --- a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C +++ b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C @@ -137,25 +137,33 @@ void rotateFields(const argList& args, const Time& runTime, const tensor& T) int main(int argc, char *argv[]) { - const wordList supportedTransformations + argList::addNote ( - {"translate", "rotate", "Rx", "Ry", "Rz", "Ra", "scale"} + "Transforms a mesh by translation, rotation and/or scaling.\n" + "The are listed comma-separated in a string " + "and executed in sequence.\n\n" + "transformations:\n" + " translate= " + "translation by vector, e.g. (1 2 3)\n" + " rotate=( ) " + "rotation from unit vector n1 to n2\n" + " Rx= " + "rotation by given angle [deg], e.g. 90, about x-axis\n" + " Ry= " + "rotation by given angle [deg] about y-axis\n" + " Rz= " + "rotation by given angle [deg] about z-axis\n" + " Ra= " + "rotation by given angle [deg] about specified axis\n" + " scale= " + "scale by factors from vector in x, y, z directions,\n" + " " + "e.g. (0.001 0.001 0.001) to scale from mm to m\n\n" + "example:\n" + " transformPoints " + "\"translate=(1.2 0 0), Rx=90, translate=(-1.2 0 0)\"" ); - { - OStringStream supportedTransformationsStr; - supportedTransformationsStr << supportedTransformations << endl; - - argList::addNote - ( - "Transforms a mesh e.g.\n" - "transformPoints " - "\"translate=(-0.586 0 -0.156), " - "Ry=3.485, " - "translate=(0.586 0 0.156)\"\n\n" - "Supported transformations " + supportedTransformationsStr.str() - ); - } argList::validArgs.append("transformations"); diff --git a/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C b/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C index 6cd3842898..b803e41454 100644 --- a/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C +++ b/applications/utilities/surface/surfaceTransformPoints/surfaceTransformPoints.C @@ -71,27 +71,34 @@ int main(int argc, char *argv[]) { #include "removeCaseOptions.H" - const wordList supportedTransformations + argList::addNote ( - {"translate", "rotate", "Rx", "Ry", "Rz", "Ra", "scale"} + "Transforms a surface geometry " + "by translation, rotation and/or scaling.\n" + "The are listed comma-separated in a string " + "and executed in sequence.\n\n" + "transformations:\n" + " translate= " + "translation by vector, e.g. (1 2 3)\n" + " rotate=( ) " + "rotation from unit vector n1 to n2\n" + " Rx= " + "rotation by given angle [deg], e.g. 90, about x-axis\n" + " Ry= " + "rotation by given angle [deg] about y-axis\n" + " Rz= " + "rotation by given angle [deg] about z-axis\n" + " Ra= " + "rotation by given angle [deg] about specified axis\n" + " scale= " + "scale by factors from vector in x, y, z directions,\n" + " " + "e.g. (0.001 0.001 0.001) to scale from mm to m\n\n" + "example:\n" + " surfaceTransformPoints \"translate=(1.2 0 0), Rx=90\" " + "in.stl out.obj" ); - { - OStringStream supportedTransformationsStr; - supportedTransformationsStr << supportedTransformations << endl; - - argList::addNote - ( - "Transforms a surface e.g.\n" - "surfaceTransformPoints " - "\"translate=(-0.586 0 -0.156), " - "Ry=3.485, " - "translate=(0.586 0 0.156)\" " - "surf.stl tranformedSurf.obj\n\n" - "Supported transformations " + supportedTransformationsStr.str() - ); - } - argList::noParallel(); argList::validArgs.append("transformations"); argList::validArgs.append("surface file");