<div dir="ltr"><div><div><div><div>Before I report this as a bug, I was just curious if anyone else could confirm this or had any other insight. I'm still not sure if this is a bug or a problem on my end. Basically, when I try to use vtkLegendActor in Python, I get the following error:<br>
</div><pre class="" id="comment_text_0">ERROR: In ..\..\..\VTKSrc\Filters\General\vtkTransformPolyDataFilter.cxx, line 84 vtkTransformPolyDataFilter (09ED64F8): No input data<br></pre>It doesn't crash my program, but the error shows up in the console as many number of times as self.legend.SetNumberOfEntries(n) is set. This same error does NOT occur with my build of VTK 5.10.1.</div>
<br></div>Below is a sample program I threw together that generates the error on my end. Any insight would be greatly appreciated.<br><br>Many thanks,<br><br></div>--Josh<br><br><pre class="" id="comment_text_7">#################################
import vtk
square = vtk.vtkCubeSource()
mapper = vtk.vtkPolyDataMapper()
mapper.SetInputData(square.GetOutput())
legendBox = vtk.vtkLegendBoxActor()
legendBox.SetNumberOfEntries(1)
legendBox.SetEntry(0, square.GetOutput(), "Test", [1,1,0])
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
ren.AddActor(legendBox)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin);
renWin.Render()
iren.Start()
#################################
</pre><br></div>