diff --git a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C index 43ae87179..3937fb5e2 100644 --- a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C +++ b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C @@ -165,6 +165,14 @@ int main(int argc, char *argv[]) # include "setRootCase.H" # include "createTime.H" + if (args.options().empty()) + { + FatalErrorIn(args.executable()) + << "No options supplied, please use one or more of " + "-translate, -rotate, -scale, or -cylToCart options." + << exit(FatalError); + } + word regionName = polyMesh::defaultRegion; fileName meshDir; @@ -191,14 +199,7 @@ int main(int argc, char *argv[]) ) ); - - if (args.options().empty()) - { - FatalErrorIn(args.executable()) - << "No options supplied, please use one or more of " - "-translate, -rotate, -scale, or -cylToCart options." - << exit(FatalError); - } + // Translation options if (args.optionFound("translate")) { @@ -209,6 +210,8 @@ int main(int argc, char *argv[]) points += transVector; } + // Rotation options + if (args.optionFound("rotate")) { Pair n1n2(args.optionLookup("rotate")()); @@ -298,7 +301,7 @@ int main(int argc, char *argv[]) } } - + // Scale options if (args.optionFound("scale")) {