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.