Salome HOME
Switch to SSL mode for tests : naive approach
[modules/geom.git] / doc / salome / examples / viewing_geom_objs_ex04.py
1 # Set Point Marker
2
3 import os
4 import salome
5 salome.salome_init_without_session()
6 import GEOM
7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New()
9
10 texture_file = os.path.join(os.getenv("GEOM_ROOT_DIR"), "share", "salome", "resources", "geom", "textures", "texture1.dat")
11 texture = geompy.LoadTexture(texture_file)
12
13 v1 = geompy.MakeVertex(0, 0, 0)
14 v2 = geompy.MakeVertex(100, 0, 0)
15 v3 = geompy.MakeVertex(0, 100, 0)
16
17 v1.SetMarkerStd(GEOM.MT_O_PLUS, GEOM.MS_25)
18 v2.SetMarkerStd(GEOM.MT_BALL,   GEOM.MS_40)
19 v3.SetMarkerTexture(texture)