mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-31 03:40:35 +05:00
21 lines
540 B
Python
21 lines
540 B
Python
# Changing Display Mode
|
|
|
|
import salome
|
|
salome.salome_init()
|
|
import GEOM
|
|
from salome.geom import geomBuilder
|
|
geompy = geomBuilder.New(salome.myStudy)
|
|
box = geompy.MakeBox(0,0,0, 50,50,50)
|
|
box2 = geompy.MakeBox(-50,-50,-50, 0,0,0)
|
|
|
|
sphere = geompy.MakeSphere(50,50,50, 30)
|
|
fuse = geompy.MakeBoolean(box,sphere,3)
|
|
fuse_id = geompy.addToStudy(fuse,"Fuse")
|
|
|
|
gg = salome.ImportComponentGUI("GEOM")
|
|
gg.createAndDisplayGO(fuse_id)
|
|
gg.setDisplayMode(fuse_id,1)
|
|
gg.setVectorsMode(fuse_id, 1)
|
|
gg.setVerticesMode(fuse_id, 1)
|
|
gg.setNameMode(fuse_id, 1)
|