Salome HOME
optparse => argparse
[modules/hexablock.git] / doc / tui_propag.rst
1 :tocdepth: 3
2
3 .. _tuipropag:
4
5 =============================================
6 Discretization defined on the model of blocks
7 =============================================
8
9 Get the number of propagation existing on the model of blocks::
10
11     np = doc.countPropagation()
12
13 Get a propagation of the model of blocks::
14
15     propa = doc.getPropagation(index)
16
17 Find a propagation by an edge of the model of blocks::
18
19     propa = doc.findPropagation(edge)
20
21 Get all edges of the propagation and the way in the propagation::
22
23     edges = propa.getEdges()
24     bo = propa.getWay()
25
26 Set a law of discretization for a propagation::
27
28     propa.setLaw(law)
29
30 Get the law of the propagation for a propagation::
31
32     law = propa.getLaw()
33
34 Set the way where the law is applied on the propagation::
35
36     propa.setWay(bo)
37
38
39 GUI command: :ref:`guipropag`