add(test): non regression test EnSight6 + TemporalCache interaction

HTGUnlimitedGradien
Julien Fausty 2 months ago
parent 93c33b98df
commit fb8b3ca98f
  1. 1
      IO/EnSight/Testing/CMakeLists.txt
  2. 1
      IO/EnSight/Testing/Python/CMakeLists.txt
  3. 42
      IO/EnSight/Testing/Python/EnSight6TemporalGeometryChange.py
  4. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GEO00001.sha512
  5. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GEO00002.sha512
  6. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GEO00003.sha512
  7. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GlobalPointID00001.sha512
  8. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GlobalPointID00002.sha512
  9. 1
      Testing/Data/EnSight/.EnsightData_temporalCache/streamlines___format0000_GlobalPointID00003.sha512
  10. 1
      Testing/Data/EnSight/temporalCache.case.sha512

@ -4,6 +4,7 @@ if (VTK_WRAP_PYTHON)
Data/EnSight/UndefAndPartial/,REGEX:.*
Data/EnSight/UndefAndPartialAscii/,REGEX:.*
Data/EnSight/particles/,REGEX:.*
Data/EnSight/.EnsightData_temporalCache/,REGEX:.*
)
add_subdirectory(Python)

@ -2,6 +2,7 @@ vtk_add_test_python(
EnSight6Elements.py
EnSight6ElementsBin.py
EnSight6OfficeBin.py
EnSight6TemporalGeometryChange.py,NO_VALID
EnSightBlow1ASCII.py
EnSightBlow1Bin.py
EnSightBlow2ASCII.py

@ -0,0 +1,42 @@
#!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# create a rendering window and renderer
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
renWin.StereoCapableWindowOn()
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
reader = vtk.vtkGenericEnSightReader()
reader.SetCaseFileName("" + str(VTK_DATA_ROOT) + "/Data/EnSight/temporalCache.case")
tCache = vtk.vtkTemporalDataSetCache()
tCache.SetInputConnection(reader.GetOutputPort())
tCache.SetCacheSize(3)
# populate cache
tCache.UpdateTimeStep(0.0000)
tCache.UpdateTimeStep(0.010002)
tCache.UpdateTimeStep(0.020032)
# read through cache again
tCache.UpdateTimeStep(0.0000)
tCache.UpdateTimeStep(0.010002) # used to crash here
sphere = vtk.vtkSphereSource()
sphere.SetRadius(0.001)
mapper = vtk.vtkGlyph3DMapper()
mapper.SetInputConnection(tCache.GetOutputPort())
mapper.SetSourceConnection(sphere.GetOutputPort())
actor = vtk.vtkActor()
actor.SetMapper(mapper)
ren1.AddActor(actor)
ren1.ResetCamera()
iren.Initialize()
renWin.Render()
# Leaks without this line
reader.SetDefaultExecutivePrototype(None)

@ -0,0 +1 @@
ba78de025f5bdb2ba5b9b36f93455dd578a15d00dffe3080f983a86a7a5d5889a6554f83c740b95f223b411846928643d808e9576268d0f6c8698266848051c8

@ -0,0 +1 @@
577608f42947f98410e6eae9e2698734bbfde827dad3fc208a63b72570eaca16ad16f03c25d5a066e0f7ce7f3a231088e690ead77aabe939f1b801c31d129e45

@ -0,0 +1 @@
8d60c9f1c159409cea1b10b276818d40af016b4bba08aed24eb6d6c64b6d9efde7015dabb36d60fb4ced062dec8438a3395bbf2c86dea380b271a5c7964aac85

@ -0,0 +1 @@
5ea6d6f376967214fe27e85d84a5a6a5b8e479bf6ffe234ced0330569801d002f90ee4ca0b079c524fac95565ebb1bd2abd2009f55491b1c7a239ccbe1a09cb8

@ -0,0 +1 @@
76188151611dce13fc6140e41cda7ce503bed34a132d7b27b0244d86daa0247b6a13f4f042d406cff3c02fc97c0496836111751b28afde3c793057da84abd58c

@ -0,0 +1 @@
94c46636af765c1481cedf583436517e2229436a32842c17de0d050450135c5e3440d014401b8bd2a8bdf694a246a5c312c13277b5ae90d5d42ca489a3390eab

@ -0,0 +1 @@
049701c01d8426c313bb4e6d6ecd2610d0a8b210fdd1c6ddf6a0b00c436a4ddf2f2b46dd58199e9c57d2b364f8cbbc64f178de9e7997f4152dbf7a4e44efdaac
Loading…
Cancel
Save