Salome HOME
Increment version: 8.1.0
[modules/hexablock.git] / doc / tui_make_elmts.rst
1 :tocdepth: 3
2
3 .. _tuimakeelements:
4
5 ======================================
6 Make elements by transforming elements
7 ======================================
8
9 Rotate and translate for any kind of elements::
10
11     elts = doc.makeTranslation(elements, vec)
12     elts = doc.makeRotation(elements, ver, vec, angle)
13     elts = doc.makeScale (elements, destination_point, k)
14
15 and "element" could be Vertex, Edge, Quadrangle, Hexahedeon, Vector, Cylinder,
16 Pipe and Elements and the result "elts" is always an object of type
17 "Elements".
18
19 Operations on *elts*: :ref:`tuielements2`
20
21
22 Example
23 =======
24
25 Translation
26 -----------
27
28 .. literalinclude:: test_doc/make_transformation/make_translation.py
29    :linenos:
30
31
32 .. image:: _static/make_translation.png
33    :align: center
34
35 .. centered::
36    Translation
37
38
39 Rotation
40 --------
41
42 .. literalinclude:: test_doc/make_transformation/make_rotation.py
43    :linenos:
44
45 .. image:: _static/cartesian.png
46    :align: center
47
48 .. centered::
49    Initial
50
51
52 .. image:: _static/make_rotation.png
53    :align: center
54
55 .. centered::
56    Rotation
57    
58 Scale
59 -----
60
61 .. literalinclude:: test_doc/make_transformation/make_scale.py
62    :linenos:
63
64 .. image:: _static/make_scale.png
65    :align: center
66
67 .. centered::
68    Scaling
69    
70    
71 GUI command: :ref:`guimakeelements`