Version: 6.3.1

Point Marker

Example of using Point Markers:

import os
import time
import VISU
from visu_gui import *

data_dir = os.getenv("DATA_DIR")
sleep_delay = 2

myViewManager = myVisu.GetViewManager();

myView = myViewManager.Create3DView()
myView.SetTitle("The viewer for Point Marker Example")
print "myViewManager.Create3DView()"

medFile = "fra.med"
medFile = os.path.join(datadir,"MedFiles","fra.med")
myResult = myVisu.ImportFile(medFile)

aMeshName ="LE VOLUME"
anEntity = VISU.NODE
aFieldName = "VITESSE";
aTimeStampId = 1

aScalarMap = myVisu.ScalarMapOnField(myResult,aMeshName,anEntity,aFieldName,aTimeStampId)
myView.Display(aScalarMap);
myView.FitAll();

print "Set the representation type to Point"
myView.SetPresentationType(aScalarMap, VISU.POINT)

print "Set a standard marker"
aScalarMap.SetMarkerStd(VISU.MT_PLUS, VISU.MS_25)
myView.Update()
time.sleep(sleep_delay)

print "Set a custom marker"
custom_texture = myVisu.LoadTexture(os.path.join(data_dir, "Textures", "texture1.dat"))
aScalarMap.SetMarkerTexture(custom_texture)
myView.Update()


Please, see Prs3d interface reference documentation for more details.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS