operators/ex_surf.py
# ----------------------------------------------------------------------------
#  CLASSES: nightly
#
#  Test Case:  external_surface.py
#
#  Programmer: Hank Childs
#  Date:       August 24, 2005
#
#  Modifications:
#
#    Mark C. Miller, Wed Jan 20 07:37:11 PST 2010
#    Added ability to swtich between Silo's HDF5 and PDB data.
# ----------------------------------------------------------------------------


OpenDatabase(silo_data_path("multi_ucd3d.silo"))

AddPlot("Pseudocolor", "d")
AddOperator("ExternalSurface")
DrawPlots()

v = GetView3D()
v.viewNormal = (-0.707, 0, 0.707)
v.nearPlane = 0
SetView3D(v)

Test("ops_ex_surf_01")

Query("NumZones", "actual")
t = GetQueryOutputString()
TestText("ops_ex_surf_02", t)

es = ExternalSurfaceAttributes()
es.removeGhosts = 1
SetOperatorOptions(es)

Query("NumZones", "actual")
t = GetQueryOutputString()
TestText("ops_ex_surf_03", t)


DeleteAllPlots()
OpenDatabase(silo_data_path("ucd2d.silo"))

AddPlot("Pseudocolor", "d")
AddOperator("ExternalSurface")
DrawPlots()
Test("ops_ex_surf_04")

Exit()