Salome HOME
Merge branch 'V9_8_BR'
[modules/hexablock.git] / doc / tui_cut_hexa.rst
1 :tocdepth: 3
2
3
4 .. _tuicuthexa:
5
6 =============
7 Cut hexahedra
8 =============
9
10 .. _tuicuthexauniform:
11
12 Uniform Cut
13 ===========
14
15 To make a uniform cut of an hexahedra in python mode, you need the following arguments:
16
17 - *edge*    : an edge on the hexahedra to cut.
18 - *nbCuts*: the number of cuts.
19
20 Use the function **cutUni**::
21
22         elts = doc.cutUni(edge, nbCuts)
23         
24
25 GUI command: :ref:`guicuthexauniform`
26
27
28 .. _tuicuthexacustom:
29
30 Custom Cut
31 ==========
32
33 To make a custom cut of an hexahedra you need the following arguments:
34
35 - *edge*: an edge on the hexahedra to cut.
36 - *tl*  : the list of the lengths of the layers in ascendant order.
37
38 Use the funtion **cut**::
39
40         elts = doc.cut(edge, tl)
41         
42 GUI command: :ref:`guicuthexacustom`
43
44 Operations on *elts*: :ref:`tuielements2`
45
46
47 Example
48 =======
49
50 .. literalinclude:: test_doc/cutHexa/cut_hexa.py
51    :linenos:
52
53