2013-02-12 17:35:16 +06:00
|
|
|
# Set Point Marker
|
|
|
|
|
2013-11-18 17:42:11 +06:00
|
|
|
import os
|
2013-02-12 17:35:16 +06:00
|
|
|
import salome
|
2013-04-04 13:06:43 +06:00
|
|
|
salome.salome_init()
|
2013-02-28 20:00:05 +06:00
|
|
|
import GEOM
|
2013-04-04 13:06:43 +06:00
|
|
|
from salome.geom import geomBuilder
|
|
|
|
geompy = geomBuilder.New(salome.myStudy)
|
2013-02-12 17:35:16 +06:00
|
|
|
|
2016-03-11 14:03:17 +05:00
|
|
|
texture_file = os.path.join(os.getenv("GEOM_ROOT_DIR"), "share", "salome", "resources", "geom", "textures", "texture1.dat")
|
|
|
|
texture = geompy.LoadTexture(texture_file)
|
2013-02-12 17:35:16 +06:00
|
|
|
|
|
|
|
v1 = geompy.MakeVertex(0, 0, 0)
|
|
|
|
v2 = geompy.MakeVertex(100, 0, 0)
|
|
|
|
v3 = geompy.MakeVertex(0, 100, 0)
|
|
|
|
|
|
|
|
v1.SetMarkerStd(GEOM.MT_O_PLUS, GEOM.MS_25)
|
|
|
|
v2.SetMarkerStd(GEOM.MT_BALL, GEOM.MS_40)
|
|
|
|
v3.SetMarkerTexture(texture)
|