ParaView-5.0.1: Added the source-tree to ThirdParty-dev and patched as described in the README file

Resolves bug-report http://bugs.openfoam.org/view.php?id=2098
This commit is contained in:
Henry Weller
2016-05-30 21:20:56 +01:00
parent 1cce60aa78
commit eba760a6d6
24640 changed files with 6366069 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#### import the simple module from the paraview
from paraview.simple import *
# Create a wavelet and clip it with a Cylinder.
wavelet = Wavelet()
Show()
clip = Clip()
clip.ClipType = "Cylinder"
clip.InsideOut = True
Show()
cylinder = clip.ClipType
cylinder.Axis = [-1, 1, -1]
cylinder.Center = [8, 4, -3]
cylinder.Radius = 3
Render()
# compare with baseline image
import os
import sys
try:
baselineIndex = sys.argv.index('-B')+1
baselinePath = sys.argv[baselineIndex]
except:
print "Could not get baseline directory. Test failed."
exit(1)
baseline_file = os.path.join(baselinePath, "TestClipCylinder.png")
import vtk.test.Testing
vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir()
vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file,
threshold=25)
vtk.test.Testing.interact()