<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812">
<STYLE></STYLE>
</HEAD>
<BODY background="" bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,<BR>I am having trouble moving an output between 
filters using SetOutput() as follows.</FONT></DIV>
<DIV><BR><FONT size=2 face=Arial>1. Single filter, f1.<BR>&nbsp;&nbsp;&nbsp; 
vtkPolyData* myOutput = vtkPolyData::New();</FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>&nbsp;&nbsp;&nbsp; f1-&gt;SetOutput( myOutput 
);</FONT></DIV>
<DIV>&nbsp;</DIV>&nbsp;&nbsp;&nbsp; vtkAppendPolyData* myAppend =&nbsp; 
vtkAppendPolyData::New();</FONT></DIV>
<DIV><FONT size=2 face=Arial>&nbsp;&nbsp;&nbsp; myAppend-&gt;AddInput( myOutput 
);</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
face=Arial></FONT><BR><FONT size=2 face=Arial>"myOutput"&nbsp;is displayed 
correctly.</FONT></DIV><FONT face=Arial></FONT>
<DIV><BR><FONT size=2 face=Arial>2. Append filter f2 to 
f1.<BR>&nbsp;&nbsp;&nbsp; f1-&gt;SetOutput( 0 );<BR>&nbsp;&nbsp;&nbsp; 
f2-&gt;SetInputConnection( f1-&gt;GetOutputPort() );<BR>&nbsp;&nbsp;&nbsp; 
f2-&gt;SetOutput( myOutput );</FONT></DIV><FONT size=2 face=Arial>
<DIV><BR>"myOutput" does not appear to see the changes made by filter 
f2.<BR></DIV>
<DIV>3. Remove filter f2.<BR>&nbsp;&nbsp;&nbsp; 
f&nbsp;2-&gt;Delete();<BR>&nbsp;&nbsp;&nbsp; f1-&gt;SetOutput( myOutput 
);<BR></DIV>
<DIV>ERROR: In 
/home/john/VTK/vtk-5.4.2/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, 
line 747<BR>vtkStreamingDemandDrivenPipeline : No maximum number of pieces has 
been set in the information for output port 0 on algorithm vtkf1"<BR></DIV>
<DIV>Any help on using SetOutput() would be greatly appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV>
<DIV>&nbsp;</DIV>
<DIV>John.</FONT></DIV></BODY></HTML>