geom/doc/salome/examples/advanced_geom_objs_ex02.py

18 lines
427 B
Python
Raw Normal View History

# Creation of DividedDisk
import salome
2013-03-13 17:36:49 +06:00
salome.salome_init()
import GEOM
2013-03-13 17:36:49 +06:00
from salome.geom import geomBuilder
geompy = geomBuilder.New(salome.myStudy)
gg = salome.ImportComponentGUI("GEOM")
# create DividedDisk object
divideddisk = geompy.MakeDividedDisk(100, 1, GEOM.SQUARE)
# add object in the study
id_divideddisk = geompy.addToStudy(divideddisk,"DividedDisk")
# display divideddisk
gg.createAndDisplayGO(id_divideddisk)