<div dir="ltr">Hi Als,<div>This example might help you : <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/CombinePolyData">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/CombinePolyData</a></div><div><br></div><div>When you are appending new data you are missing the information of the old data with which you need to append.</div><div><br></div><div>I am doing it this way </div><div><br></div><div><div>appendPolydata->AddInputConnection( OldPolyData->GetProducerPort());</div><div>appendPolydata->AddInputConnection( NewPolyData->GetProducerPort());</div></div><div><br></div><div>appenPolydata->Update();</div><div><br></div><div>Chiranjib</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 2:20 PM, AIs <span dir="ltr"><<a href="mailto:royalmatador@gmail.com" target="_blank">royalmatador@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi VTK users,<br>
I want to append several polydata planes using vtkAppendPolyData, but have<br>
some issues with it.<br>
I have a for loop for 20 polydata planes which I send as input to<br>
vtkAppendPolyData function as follows,<br>
<br>
vtkSmartPointer<vtkAppendPolyData> apd =<br>
vtkSmartPointer<vtkAppendPolyData>::New( );<br>
<br>
for ( i = 1; i < 20; i++ )<br>
{<br>
    // some function to generate polydata -pd<br>
<br>
    apd->AddInputConnection( pd->GetOutputPort( ) );<br>
<br>
}<br>
<br>
apd->Update( );<br>
<br>
But, I am only generating actor for the last polydata plane and not a stack<br>
of successive planes.<br>
Can some one guide me on this.<br>
Many thanks<br>
AIs<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtk-append-polydata-tp5731651.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtk-append-polydata-tp5731651.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>