Salome HOME
Merge branch 'V8_4_BR'
[modules/smesh.git] / doc / salome / gui / SMESH / input / translation.rst
1 .. _translation_page:
2
3 ***********
4 Translation
5 ***********
6
7 This geometrical operation allows to translate in space your mesh
8 or some of its elements.
9
10 **To translate a mesh:**
11
12
13 #. From the **Modification** menu choose **Transformation** -> **Translation** item  or click **"Translation"** button in the toolbar.
14
15         .. image:: ../images/translation.png 
16                 :align: center
17         .. centered::
18                 "Translation button"
19
20         One of the following dialogs will appear:
21
22         It is possible to define the vector of thanslation:
23
24         .. image:: ../images/translation1.png 
25                 :align: center
26
27         .. centered::
28                 "by two points"
29
30 |
31
32         .. image:: ../images/translation2.png 
33                 :align: center
34
35         .. centered::
36                 "by the vector from the origin of coordinates" 
37
38
39
40 #. In the dialog:
41
42         * specify the IDs of the translated elements:
43
44                 * **Select the whole mesh, submesh or group** activating this checkbox; or
45                 * choose mesh elements with the mouse in the 3D Viewer. It is possible to select a whole area with a mouse frame; or 
46                 * input the element IDs directly in **ID Elements** field. The selected elements will be highlighted in the viewer; or
47                 * 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.
48
49         * specify the vector of translation:
50
51                 * specify the cooordinates of the start and end **Points** of the vector of translation; or
52                 * specify the end point of the **Vector** of rotation starting at the origin of coordinates.
53
54         * specify the conditions of translation:
55
56                 * activate **Move elements** radio button to create  the source mesh (or elements) at the new location and erase it from the previous location;
57                 * 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;
58                 * 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);
59                 * activate **Copy groups** checkbox to copy the groups of elements of the source mesh to the newly created mesh.
60
61         * activate **Preview** checkbox to show the result of transformation in the viewer 
62         * click **Apply** or **Apply and Close** button to confirm the operation.
63
64 **See Also** a sample TUI Script of a :ref:`tui_translation` operation.  
65
66