]> SALOME platform Git repositories - modules/hexablock.git/blob - doc/tui_cut_hexa.rst
Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/hexablock.git] / doc / tui_cut_hexa.rst
1 :tocdepth: 3
2
3
4 .. _tuicuthexa:
5
6 =============
7 Cut hexahedra
8 =============
9
10 Cut hexahedra from the model of blocks::
11
12     elts = doc.cut(an_edge, nb_of_cuts)
13
14 This method enables to cut in two (or more) a series of hexahedra using a series of edges propagation.
15
16
17 Example
18 -------
19
20 ::
21
22     import hexablock 
23     doc = hexablock.addDocument()
24
25     size_x = 2
26     size_y = 1
27     size_z = 1
28
29     orig = doc.addVertex(0, 0, 0)
30     dirVr = doc.addVector(1, 1, 1)
31
32     grid = doc.makeCartesian1(orig, dirVr, size_x, size_y, size_z, 0, 0, 0) 
33     arete = grid.getEdgeK(0, 0, 0)
34
35     doc.cut(arete, 1)
36
37 GUI command: :ref:`guicuthexa`