What type of data set do you have? Rob&#39;s idea should work for unstructured grids. For structured grids you may want to try vtkPVTrivialProducer instead since that has stuff for extents in it though that may still be a bit wonky, especially with the VOI filters.<br>
<br>Andy<br><br><div class="gmail_quote">On Tue, Jul 3, 2012 at 1:44 PM, Robert Maynard <span dir="ltr">&lt;<a href="mailto:robert.maynard@kitware.com" target="_blank">robert.maynard@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you tried to use vtkTrivialProducer? You should be able to use SetOutput(vtkDataSet) to set the output dataset.<br><br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 3, 2012 at 11:08 AM, Randall Hand <span dir="ltr">&lt;<a href="mailto:randall.hand@gmail.com" target="_blank">randall.hand@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">I have several functions in code libraries based on older stuff (primarily custom file format readers) that return vtkDataSet stuff, but I&#39;ve recently started building code on the new GetOutputPort/SetInputConnection methods.  I had kinda hoped I could use a vtkPassThroughFilter and SetInput(vtkDataSet), GetOutputPort(), but that results in errors.<div>




<br></div><div>Is there a simple way to make this work? Or am I stuck rebuilding all my file readers?<br clear="all">--<br>Randall Hand<br><a href="http://www.vizworld.com" target="_blank">http://www.vizworld.com</a><br>



</div>
<br></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Robert Maynard<br>
</font></span><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>