Salome HOME
[MEDCalcl] PointSprite and VectorField presentations.
[modules/med.git] / src / MEDCalc / test / tui / slices.py
index 413a3d11854d655747fa437a51d11a7b8670dde7..e3edd10ba2475b489068267c044325fcd311c6f1 100644 (file)
@@ -30,7 +30,9 @@ from medcalc_testutils import GetMEDFileDirTUI
 datafile = os.path.join(GetMEDFileDirTUI(), "agitateur.med")
 source_id = medcalc.LoadDataSource(datafile)
 
-presentation_id = medcalc.MakeSlices(accessField(0), MEDCALC.VIEW_MODE_REPLACE, colorMap=MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW)
+presentation_id = medcalc.MakeSlices(accessField(0), MEDCALC.VIEW_MODE_REPLACE, 
+                                     colorMap=MEDCALC.COLOR_MAP_BLUE_TO_RED_RAINBOW,
+                                     sliceOrientation=MEDCALC.SLICE_NORMAL_TO_Z)  # normal to Z to see something!
 sleep(1)
 medcalc.RemovePresentation(presentation_id)
 sleep(1)