2013-02-18 20:55:48 +06:00
|
|
|
# Creation of DividedCylinder
|
|
|
|
|
|
|
|
import salome
|
2013-03-13 17:36:49 +06:00
|
|
|
salome.salome_init()
|
2013-02-18 20:55:48 +06:00
|
|
|
import GEOM
|
2013-03-13 17:36:49 +06:00
|
|
|
from salome.geom import geomBuilder
|
|
|
|
geompy = geomBuilder.New(salome.myStudy)
|
2013-02-18 20:55:48 +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)
|