[vtkusers] vtkAppendPolyData RemoveInputData leads to 0 connections

Schober Beatrix [STEMMER IMAGING GmbH] b.schober at stemmer-imaging.de
Wed Jan 25 09:14:09 EST 2017

Hi Bill,

thank you very much, but I forgot to mention, that the last vtkPolyData is not removed then.

Sorry for this missing piece of information.


Von: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Gesendet: Mittwoch, 25. Januar 2017 15:04
An: Schober Beatrix [STEMMER IMAGING GmbH] <b.schober at stemmer-imaging.de>
Cc: VTK Users <vtkusers at vtk.org>
Betreff: Re: [vtkusers] vtkAppendPolyData RemoveInputData leads to 0 connections

If you are concerned about seeing the error message, you can catch it.

On Jan 25, 2017 8:53 AM, "Schober Beatrix [STEMMER IMAGING GmbH]" <b.schober at stemmer-imaging.de<mailto:b.schober at stemmer-imaging.de>> wrote:

it seems to be an easy issue, but I don’t get the solution. I am appending multiple vtkPolyData to vtkAppendPolyData:

vtkSmartPointer<vtkAppendPolyData> appendFilter = vtkSmartPointer<vtkAppendPolyData>::New();

In another functions I want to hide / show those polydata:

Function to hide:

Function to show:

This works fine, unless I have only one polydata in the vtkAppendPolyData filter. If I hide (see Function to hide) this last polydata I get following error after appendFilter->Update():
Input port 0 of algorithm vtkAppendPolyData has 0 connections.

The error message is clear, but how would you solve this? Is there a better way to do that?

Thank you very much in advance!



Powered by www.kitware.com<http://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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170125/bbbf5270/attachment.html>

More information about the vtkusers mailing list