[vtkusers] vtkContourFilter->SetInputConnection(vtkExodusIIReader ->GetOutputPort())
erol yeniaras
eyeniaras at gmail.com
Wed May 30 17:49:21 EDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120530/46931df7/attachment.htm>
More information about the vtkusers
mailing list