Salome HOME
Merge branch 'V9_8_BR'
[modules/hexablock.git] / doc / tui_replace_hexa.rst
1 :tocdepth: 3
2
3
4 .. _tuireplacehexa:
5
6 ==================
7 Replace Hexahedron
8 ==================
9
10 The following example explain how to replace hexa in script mode.
11 For parameters description see the gui documentation of replace hexa.
12
13 ::
14
15         elts = doc.replace (qpattern, pd2,c1, pa2,c2, pb2,c3)
16         
17 Operations on *elts*: :ref:`tuielements2`
18
19
20 Complete example
21 ----------------
22
23 .. literalinclude:: test_doc/replace_hexa/replace_hexa.py
24    :linenos:
25
26 Result
27 ------
28
29 .. image:: _static/before_replace_hexa.png
30    :align: center
31
32 .. centered::
33    Before hexa replacement
34
35    
36 .. image:: _static/after_replace_hexa.png
37    :align: center
38
39 .. centered::
40    After hexa replacement
41    
42 GUI command: :ref:`guireplacehexa`