mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-12 00:29:18 +05:00
16 lines
381 B
Python
16 lines
381 B
Python
|
# Creation of DividedCylinder
|
||
|
|
||
|
import geompy
|
||
|
import salome
|
||
|
import GEOM
|
||
|
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)
|