<div dir="ltr">Josh,<div><br></div><div>Looks like a bug to me. I see the same error with this C++ example:</div><div><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Legend">http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Legend</a><br>
</div><div><br></div><div style>I'll take a look.</div><div style><br></div><div style>Bill</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 11, 2013 at 5:00 AM, Gelman, Joshua <span dir="ltr"><<a href="mailto:jgelman@decisionvis.com" target="_blank">jgelman@decisionvis.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>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>#################################
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>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>