[vtkusers] how to handle an empty pipeline?

Bill Lorensen bill.lorensen at gmail.com
Tue Oct 17 18:36:36 EDT 2017


You can catch the warnings/errors like this:
https://lorensen.github.io/VTKExamples/site/Cxx/Utilities/ObserveError/


On Tue, Oct 17, 2017 at 2:34 PM, Langer, Stephen A. (Fed)
<stephen.langer at nist.gov> wrote:
> Hi --
>
> What's the right way to handle a pipeline that might at times have no data in it?   I'm connecting to a vtkDataSetMapper,  and if the input stream is empty vtk prints a warning "vtkDataSetSurfaceFilter: Number of cells is zero, no data to process".    I don't create the vtkDataSetSurfaceFilter myself -- it's been inserted into the pipeline by the mapper.  It doesn't do that if the input data is poly data, and if I change the input to poly data, the mapper seems quite happy with the empty pipeline, so it's odd that it complains in one case but not the other.
>
> Is there something that I should do at the pipeline source to tell the pipeline not to run?  Is there a way to suppress just this one warning message?
>
> I'm using vtk 7.1.1 in C++.
>
> Thanks.
>  -- Steve
>
> _______________________________________________
> 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



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list