geom/doc/salome/examples/GEOM_box.py

17 lines
401 B
Python
Raw Permalink Normal View History

# --- salome initialization
import salome
salome.salome_init()
# --- geom Python interface
import GEOM
from salome.geom import geomBuilder
2017-06-13 14:57:14 +05:00
geompy = geomBuilder.New()
# --- Create a box and publish it into the salome study
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( Box_1, 'Box_1' )
# --- update the study object browser
if salome.sg.hasDesktop():
2017-06-13 14:57:14 +05:00
salome.sg.updateObjBrowser()