6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 box = geompy.MakeBox(0,0,0, 50,50,50)
9 box2 = geompy.MakeBox(-50,-50,-50, 0,0,0)
11 sphere = geompy.MakeSphere(50,50,50, 30)
12 fuse = geompy.MakeBoolean(box,sphere,3)
13 fuse_id = geompy.addToStudy(fuse,
"Fuse")
15 gg = salome.ImportComponentGUI(
"GEOM")
16 gg.createAndDisplayGO(fuse_id)
17 gg.setDisplayMode(fuse_id,1)
18 gg.setVectorsMode(fuse_id,
True)
19 gg.setVerticesMode(fuse_id,
True)
20 gg.setNameMode(fuse_id, 1)
6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 box = geompy.MakeBox(0,0,0, 50,50,50)
10 sphere = geompy.MakeSphere(50,50,50, 30)
11 fuse = geompy.MakeBoolean(box,sphere,3)
12 fuse_id = geompy.addToStudy(fuse,
"Fuse")
14 gg = salome.ImportComponentGUI(
"GEOM")
15 gg.createAndDisplayGO(fuse_id)
16 gg.setDisplayMode(fuse_id,1)
17 gg.setColor(fuse_id,218,165,31)
6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
9 box = geompy.MakeBox(0,0,0, 50,50,50)
10 sphere = geompy.MakeSphere(50,50,50, 30)
12 fuse = geompy.MakeBoolean(box,sphere,3)
13 fuse_id = geompy.addToStudy(fuse,
"Fuse")
15 gg = salome.ImportComponentGUI(
"GEOM")
16 gg.createAndDisplayGO(fuse_id)
17 gg.setDisplayMode(fuse_id,1)
18 gg.setColor(fuse_id,218,165,31)
19 gg.setTransparency(fuse_id,0.5)
7 from salome.geom
import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
10 texture_file = os.path.join(os.getenv(
"GEOM_ROOT_DIR"),
"share",
"salome",
"resources",
"geom",
"textures",
"texture1.dat")
11 texture = geompy.LoadTexture(texture_file)
13 v1 = geompy.MakeVertex(0, 0, 0)
14 v2 = geompy.MakeVertex(100, 0, 0)
15 v3 = geompy.MakeVertex(0, 100, 0)
17 v1.SetMarkerStd(GEOM.MT_O_PLUS, GEOM.MS_25)
18 v2.SetMarkerStd(GEOM.MT_BALL, GEOM.MS_40)
19 v3.SetMarkerTexture(texture)