geom/doc/salome/examples/advanced_geom_objs_ex03.py
2021-08-12 08:45:03 +02:00

18 lines
467 B
Python

# Creation of DividedCylinder
import salome
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()
gg = salome.ImportComponentGUI("GEOM")
# create DividedCylinder object
dividedcylinder = geompy.MakeDividedCylinder(100, 300, GEOM.SQUARE)
# add object in the study
id_dividedcylinder = geompy.addToStudy(dividedcylinder,"DividedCylinder")
# display dividedcylinder
gg.createAndDisplayGO(id_dividedcylinder)