[vtkusers] vtk append polydata

Chiranjib Sur sur.chiranjib at gmail.com
Tue Apr 28 05:10:55 EDT 2015


Hi Als,
This example might help you :
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/CombinePolyData

When you are appending new data you are missing the information of the old
data with which you need to append.

I am doing it this way

appendPolydata->AddInputConnection( OldPolyData->GetProducerPort());
appendPolydata->AddInputConnection( NewPolyData->GetProducerPort());

appenPolydata->Update();

Chiranjib



On Tue, Apr 28, 2015 at 2:20 PM, AIs <royalmatador at gmail.com> wrote:

> Hi VTK users,
> I want to append several polydata planes using vtkAppendPolyData, but have
> some issues with it.
> I have a for loop for 20 polydata planes which I send as input to
> vtkAppendPolyData function as follows,
>
> vtkSmartPointer<vtkAppendPolyData> apd =
> vtkSmartPointer<vtkAppendPolyData>::New( );
>
> for ( i = 1; i < 20; i++ )
> {
>     // some function to generate polydata -pd
>
>     apd->AddInputConnection( pd->GetOutputPort( ) );
>
> }
>
> apd->Update( );
>
> But, I am only generating actor for the last polydata plane and not a stack
> of successive planes.
> Can some one guide me on this.
> Many thanks
> AIs
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/vtk-append-polydata-tp5731651.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150428/19347ff1/attachment.html>


More information about the vtkusers mailing list