[vtkusers] vtkContourFilter->SetInputConnection(vtkExodusIIReader ->GetOutputPort())

David E DeMarle dave.demarle at kitware.com
Wed May 30 18:12:35 EDT 2012


In your program, change the default vtkexecutive type to
vtkCompositeDataPipeline. That knows how to iterate over the blocks to
satisfy the mismatch on the output and input filter types for you.
On May 30, 2012 5:49 PM, "erol yeniaras" <eyeniaras at gmail.com> wrote:

> Hello all,
>
> Below is the algorithm that I am trying for rendering exodusII file. It
> gives the following error when loading Reader to the Filter:
> *ERROR: In
> ..\..\..\..\vtksource-prefix\src\vtksource\Filtering\vtkDemandDrivenPipeline.cxx,
> line 827*
> *vtkStreamingDemandDrivenPipeline (0756AF50): Input for connection index
> 0 on input port index 0 for algorithm vtkContourFilter(07560E88) is of type
> vtkMultiBlockDataSet, but a vtkDataSet is required.*
>
> *ALGORITHM:*
> vtkExodusIIReader *Reader *= vtkExodusIIReader.New();
> vtkContourFilter *Filter *= vtkContourFilter.New();
> vtkPolyDataNormals *Normals *= vtkPolyDataNormals.New();
> vtkPolyDataMapper *Mapper *= vtkPolyDataMapper.New();
> vtkActor *actor *= vtkActor.New();
>
> *Reader*.SetFileName("C:\\...\\fem.e");
> *Reader*.Update();
>
> *Filter.SetInputConnection(Reader.GetOutputPort()); * // Here is the
> problem!!!
>
> *Normals*.SetInputConnection(*Filter*.GetOutputPort());
>
> *Mapper*.SetInputConnection(*Normals*.GetOutputPort());
>
> *actor*.SetMapper(*Mapper*);
>
> Any help is highly appreciated.
>
> Best,
> Erol
>
>
>
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120530/ccbfc4ba/attachment.htm>


More information about the vtkusers mailing list