updating volume plot test for new default renderer
# Brad Whitlock, Thu May 10 15:21:51 PDT 2018
# Add test case for sampling types.
#
+# Alister Maguire, Tue Feb 5 14:17:13 PST 2019
+# Updated the aspect test to use a larger multiplier and no shading for
+# better visibility. Updated the scaling test to not use shading (again
+# for better visibility).
+#
# ----------------------------------------------------------------------------
def InitAnnotations():
@@ -51,6 +56,7 @@ def TestVolumeScaling():
AddPlot("Volume", "t")
volAtts = VolumeAttributes()
+ volAtts.lightingFlag = 0
SetPlotOptions(volAtts)
DrawPlots()
v = GetView3D()
@@ -157,8 +163,14 @@ def TestVolumeOpacity():
def TestVolumeAspect():
OpenDatabase(silo_data_path("noise.silo"))
+ orig_atts = VolumeAttributes()
+ new_atts = VolumeAttributes()
+ new_atts.lightingFlag = 0
+
AddPlot("Volume", "hardyglobal")
- DefineVectorExpression("disp", "{0,0,-0.9999*coord(Mesh)[2]}")
+ SetPlotOptions(new_atts)
+
+ DefineVectorExpression("disp", "{0,0,-0.9*coord(Mesh)[2]}")
AddOperator("Displace")
d = DisplaceAttributes()
d.variable = "disp"
@@ -170,6 +182,7 @@ def TestVolumeAspect():
SetView3D(v)
Test("volumeAspect_01")
DeleteAllPlots()
+ SetPlotOptions(orig_atts)
def TestVolumeColorControlPoints():
OpenDatabase(silo_data_path("noise.silo"))
