<!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>
vtkPolyData* myOutput = vtkPolyData::New();</FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial> f1->SetOutput( myOutput
);</FONT></DIV>
<DIV> </DIV> vtkAppendPolyData* myAppend =
vtkAppendPolyData::New();</FONT></DIV>
<DIV><FONT size=2 face=Arial> myAppend->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" is displayed
correctly.</FONT></DIV><FONT face=Arial></FONT>
<DIV><BR><FONT size=2 face=Arial>2. Append filter f2 to
f1.<BR> f1->SetOutput( 0 );<BR>
f2->SetInputConnection( f1->GetOutputPort() );<BR>
f2->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>
f 2->Delete();<BR> f1->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> </DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV>John.</FONT></DIV></BODY></HTML>