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