2013-02-12 17:35:16 +06:00
|
|
|
# Creation of DividedCylinder
|
|
|
|
|
|
|
|
import salome
|
2021-08-12 11:43:44 +05:00
|
|
|
salome.salome_init_without_session()
|
2013-02-12 17:35:16 +06:00
|
|
|
import GEOM
|
2013-04-04 13:06:43 +06:00
|
|
|
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 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)
|