Salome HOME
Adding test for bos #41748 [CEA] Issue in interpolation edition
[modules/shaper.git] / src / FeaturesPlugin / doc / linearCopyFeature.rst
1 .. |multitranslation.icon|    image:: images/multitranslation.png
2
3 Linear copy
4 ===========
5
6 **Linear copy** feature makes several translations of a selected shape in one or two directions.
7
8 To create a Linear copy in the active part:
9
10 #. select in the Main Menu *Part - > Linear copy* item  or
11 #. click |multitranslation.icon| **Linear copy** button in the toolbar
12
13 The following property panel appears.
14
15 .. figure:: images/LinearCopy.png
16    :align: center
17
18    Linear copy property panel
19
20 Input fields:
21
22 - **Main objects** panel contains shapes to be translated. Shapes are selected in 3D OCC viewer or object browser; :ref:`transformation_subshapes`
23 - **First direction** defines translation in the first direction:
24
25   - **Vector of translation**  defines vector along which the object will be translated. Vector is edge, axis selected in 3D OCC viewer or object browser;
26   - **Step** defines the distance between the shape copies;
27   - **Nb. Copies** is the number of shape copies;
28  
29 - **Second direction** check-box turns on/off translation in the second direction:
30
31   - **Vector of translation**  defines vector along which the object will be translated. Vector is edge, axis selected in 3D OCC viewer or object browser;
32   - **Step** defines the distance between the shape copies;
33   - **Nb. Copies** defines the number of shape copies.
34
35 **TUI Command**:
36
37 .. py:function:: model.addMultiTranslation(Part_doc, [shape], axis1, step1, Nb1, axis2, step2, Nb2)
38
39     :param part: The current part object.
40     :param list: A list of shapes in format *model.selection(TYPE, shape)*.
41     :param object: A first axis in format *model.selection(TYPE, shape)*.
42     :param real: The first step value.
43     :param integer: The first number of copies.
44     :param object: A second axis in format *model.selection(TYPE, shape)*.
45     :param real: The second step value.
46     :param integer: The second number of copies.
47     :return: Created object.
48
49 Result
50 """"""
51 Result of operation is a compound.
52
53 .. figure:: images/linearcopyres.png
54    :align: center
55
56    Linear copy
57
58 **See Also** a sample TUI Script of :ref:`tui_create_linearcopy` operation.