mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 17:30:35 +05:00
7961b83044
This reverts commit 3cd92817cb
.
20 lines
476 B
Python
20 lines
476 B
Python
# Changing Transparency
|
|
|
|
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)
|
|
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.setColor(fuse_id,218,165,31)
|
|
gg.setTransparency(fuse_id,0.5)
|