X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Ftransforming_meshes_ex02.py;fp=doc%2Fsalome%2Fexamples%2Ftransforming_meshes_ex02.py;h=f96a6bb41bf1c1d363e8aa04fc07cbe6480475f2;hp=0000000000000000000000000000000000000000;hb=9a54694a0ab1e5cbc558a35c4606ceea4f7af2ef;hpb=1067ffa6e7e5c394e3a1b17219d8b355a57607cd diff --git a/doc/salome/examples/transforming_meshes_ex02.py b/doc/salome/examples/transforming_meshes_ex02.py new file mode 100644 index 000000000..f96a6bb41 --- /dev/null +++ b/doc/salome/examples/transforming_meshes_ex02.py @@ -0,0 +1,15 @@ +# Rotation + +import math + +import SMESH_mechanic + +smesh = SMESH_mechanic.smesh +mesh = SMESH_mechanic.mesh + +# define rotation axis and angle +axisXYZ = smesh.AxisStruct(0., 0., 0., 5., 5., 20.) +angle270 = 1.5 * math.pi + +# rotate a mesh +mesh.Rotate([], axisXYZ, angle270, 1)