2013-02-12 17:35:16 +06:00
|
|
|
# Changing Display Mode
|
|
|
|
|
|
|
|
import salome
|
2021-08-12 11:43:44 +05:00
|
|
|
salome.salome_init_without_session()
|
2013-04-04 13:06:43 +06:00
|
|
|
import GEOM
|
|
|
|
from salome.geom import geomBuilder
|
2017-06-13 14:57:14 +05:00
|
|
|
geompy = geomBuilder.New()
|
2013-02-12 17:35:16 +06:00
|
|
|
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)
|
2016-10-14 16:24:01 +05:00
|
|
|
gg.setVectorsMode(fuse_id, True)
|
|
|
|
gg.setVerticesMode(fuse_id, True)
|
2015-03-11 15:18:51 +05:00
|
|
|
gg.setNameMode(fuse_id, 1)
|