[vtkusers] vtkAppendPolyData RemoveInputData leads to 0 connections
Bill Lorensen
bill.lorensen at gmail.com
Wed Jan 25 09:04:08 EST 2017
If you are concerned about seeing the error message, you can catch it.
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/ObserveError
On Jan 25, 2017 8:53 AM, "Schober Beatrix [STEMMER IMAGING GmbH]" <
b.schober at stemmer-imaging.de> wrote:
> Hi,
>
> 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();
>
> appendFilter->AddInputData(polyData1);
>
> appendFilter->AddInputData(polyData2);
>
>
>
> In another functions I want to hide / show those polydata:
>
>
>
> Function to hide:
>
> appendFilter->RemoveInputData(polyDataX);
>
> appendFilter->Update();
>
>
>
> Function to show:
>
> appendFilter->AddInputData(polyDataX);
>
> appendFilter->Update();
>
>
>
> 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!
>
>
>
> Sincerely,
>
>
>
> Bea
>
> _______________________________________________
> 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/20170125/8cee46da/attachment.html>
More information about the vtkusers
mailing list