6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI("GEOM")
10 # create a box and a sphere
11 box = geompy.MakeBox(20, 20, 20, 200, 200, 200)
13 # create a new object as offset of the given object
14 offset = geompy.MakeOffset(box, 70.)
16 # add objects in the study
17 id_box = geompy.addToStudy(box, "Box")
18 id_offset = geompy.addToStudy(offset, "Offset")
21 gg.createAndDisplayGO(id_box)
22 gg.setDisplayMode(id_box,1)
23 gg.createAndDisplayGO(id_offset)