Commit ad727b9e authored by Nikhil Shetty's avatar Nikhil Shetty
Browse files

TEST-FIX: fixing vtkRenderingVolumePython-volTM3DRotateClip

Error while conversion form TCL to Python. the function was assigned before it
was defined.

Change-Id: Ia5c5253193ba814e72b51a86704445e028d5abba
parent 91d325fc
...@@ -40,7 +40,7 @@ sphereSource.SetPhiResolution(40) ...@@ -40,7 +40,7 @@ sphereSource.SetPhiResolution(40)
# Compute random scalars (colors) for each cell # Compute random scalars (colors) for each cell
randomColors = vtk.vtkProgrammableAttributeDataFilter() randomColors = vtk.vtkProgrammableAttributeDataFilter()
randomColors.SetInputConnection(sphereSource.GetOutputPort()) randomColors.SetInputConnection(sphereSource.GetOutputPort())
randomColors.SetExecuteMethod(colorCells)
def colorCells (__vtk__temp0=0,__vtk__temp1=0): def colorCells (__vtk__temp0=0,__vtk__temp1=0):
randomColorGenerator = vtk.vtkMath() randomColorGenerator = vtk.vtkMath()
input = randomColors.GetInput() input = randomColors.GetInput()
...@@ -60,6 +60,7 @@ def colorCells (__vtk__temp0=0,__vtk__temp1=0): ...@@ -60,6 +60,7 @@ def colorCells (__vtk__temp0=0,__vtk__temp1=0):
#reference counting - it's ok #reference counting - it's ok
del randomColorGenerator del randomColorGenerator
randomColors.SetExecuteMethod(colorCells)
# This does not need a hierarchical mapper, but hierarchical # This does not need a hierarchical mapper, but hierarchical
# mapper could use a test that has clipping so we use it here # mapper could use a test that has clipping so we use it here
sphereMapper = vtk.vtkHierarchicalPolyDataMapper() sphereMapper = vtk.vtkHierarchicalPolyDataMapper()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment