mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
7961b83044
This reverts commit 3cd92817cb
.
18 lines
427 B
Python
18 lines
427 B
Python
# Creation of DividedDisk
|
|
|
|
import salome
|
|
salome.salome_init()
|
|
import GEOM
|
|
from salome.geom import geomBuilder
|
|
geompy = geomBuilder.New(salome.myStudy)
|
|
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)
|