Salome HOME
0023546: [EDF] AsterStudy: add a method to Python API to show/hide orientation vector...
[modules/smesh.git] / doc / salome / gui / SMESH / input / rotation.rst
1 .. _rotation_page:
2
3 ********
4 Rotation
5 ********
6
7 This operation allows to rotate in space the mesh or some of its elements.
8
9 **To rotate the mesh:**
10
11 #. From the **Modification** menu choose **Transformation** -> **Rotation** item  or click **"Rotation"** button in the toolbar.
12  
13         .. image:: ../images/rotation_ico.png 
14                 :align: center
15
16         .. centered::
17                 "Rotation button"
18
19         The following dialog will appear:
20
21         .. image:: ../images/rotation.png
22                 :align: center
23
24 #. In this dialog:
25
26         * specify the IDs of the elements which will be rotated:
27
28                 * **Select the whole mesh, submesh or group** activating this checkbox; or
29                 * choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
30                 * input the element IDs directly in **ID Elements** field. The selected elements will be highlighted in the viewer; or
31                 * apply Filters. **Set filter** button allows to apply a filter to the selection of elements. See more about filters in the :ref:`selection_filter_library_page` page.
32
33         * specify the axis of rotation:
34                 * specify the cooordinates of the start **Point** of the vector of rotation;
35                 * specify the **Vector** of rotation through the coordinates of its end point with respect to the coordinates of the start point;
36
37         * specify the **Angle** of rotation 
38
39         * specify the conditions of rotation:
40
41                 * activate **Move elements** radio button to create  the source mesh (or elements) at the new location and erase it from the previous location;
42                 * activate **Copy elements** radio button to create the source mesh (or elements) at the new location, but leave it at the previous location, the source mesh will be considered one and single mesh with the result of the rotation;
43                 * activate **Create as new mesh** radio button to leave the source mesh (or elements) at its previous location and create a new mesh at the new location, the new mesh appears in the Object Browser with the default name MeshName_rotated (it is possible to change this name in the adjacent box);
44                 * activate **Copy groups** checkbox to copy the groups of elements of the source mesh to the newly created mesh.
45
46         * activate **Preview** checkbox to show the result of transformation in the viewer 
47         * click **Apply** or **Apply and Close** button to confirm the operation.
48
49
50 .. image:: ../images/rotation1.png 
51         :align: center
52
53 .. centered::
54         "The initial mesh"
55
56 .. image:: ../images/rotation2.png 
57         :align: center
58
59 .. centered::
60         "The rotated mesh"
61
62 **See Also** a sample TUI Script of a :ref:`tui_rotation` operation.  
63
64