from presentations import *
from pvsimple import *
import sys
-import paravis
+import pvserver as paravis
import time
# Directory for saving snapshots
print "file ", file_name
print " --------------------------------- "
-my_paravis.ImportFile(file_name)
+OpenDataFile(file_name)
proxy = GetActiveSource()
if proxy is None:
raise RuntimeError("Error: can't import file.")
represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
RepresentationType.SURFACE, RepresentationType.VOLUME]
shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
opacities = [1.0, 0.5, 0.0]
linewidths = [1.0, 3.0, 10.0]
compare_prec = 0.00001
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(iso_surf, "Shading", sha, 1)
+ call_and_check(iso_surf, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities: