geom/doc/salome/examples/advanced_geom_objs_ex02.py

18 lines
429 B
Python
Raw Normal View History

2013-02-12 17:35:16 +06:00
# Creation of DividedDisk
import salome
salome.salome_init_without_session()
2013-02-12 17:35:16 +06:00
import GEOM
from salome.geom import geomBuilder
2017-06-13 14:57:14 +05:00
geompy = geomBuilder.New()
2013-02-12 17:35:16 +06:00
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)