queries/watertight.py
# ----------------------------------------------------------------------------
#  CLASSES: nightly
#
#  Test Case:  watertight.py
#  Tests:      queries     - watertight 
#
#  Defect ID:  VisIt00006632
#
#  Programmer: Hank Childs
#  Date:       September 23, 2005
#
#  Modifications:
#
#    Mark C. Miller, Wed Jan 20 07:37:11 PST 2010
#    Added ability to swtich between Silo's HDF5 and PDB data.
# ----------------------------------------------------------------------------

TurnOnAllAnnotations()
OpenDatabase(silo_data_path("rect3d.silo"))

AddPlot("Pseudocolor", "d")
AddOperator("Isosurface")
i = IsosurfaceAttributes()
i.contourMethod = i.Value
i.contourValue = 0.48
SetOperatorOptions(i)
DrawPlots()

Query("Watertight")
text = GetQueryOutputString()
TestText("watertight_01", text)

i.contourValue = 0.5
SetOperatorOptions(i)
Query("Watertight")
text = GetQueryOutputString()
TestText("watertight_02", text)

Exit()