]> SALOME platform Git repositories - modules/geom.git/blob - doc/salome/examples/blocks_operations_ex03.py
Salome HOME
bos #29468: Advanced geometry features: distance Edge-Edge & Face-Face
[modules/geom.git] / doc / salome / examples / blocks_operations_ex03.py
1 # Propagate
2
3 import salome
4 salome.salome_init_without_session()
5 import GEOM
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New()
8
9 # create a box
10 check_box = geompy.MakeBoxDXDYDZ(200, 200, 200)
11
12 # build all possible propagation groups
13 listChains = geompy.Propagate(check_box)
14
15 # add objects in the study
16 geompy.addToStudy(check_box, "Box")
17 ii = 1
18 for chain in listChains:
19     geompy.addToStudyInFather(check_box, chain, "propagation chain " + repr(ii))
20     ii = ii + 1
21     pass
22
23 salome.sg.updateObjBrowser()