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