[vtkusers] Re: Converting vtkPolyData to vtkImageData

Will Schroeder will.schroeder at kitware.com
Tue Mar 28 06:09:43 EST 2006


Manoj-

The filter takes as iuput image data (i.e., a height map), not polydata. 
Look at the test code that is associated with vtkGreedyTerrainDecimation.

Will

Manoj Mohadikar wrote:
>
> Hi
>
> I have data in vtkPolyData data structure and I used 
> vtkGreedyTerrainDecimation algorithm. Now I want to render it. At the 
> run time I am getting the error
>
> *“Input for connection index 0 on input port index 0 for algorithm 
> vtkGreedyTerrainDecimation(0x09146DE8) is of type vtkPolyData, but a 
> vtkImageData is required.” *
>
> * *
>
> Now I need to convert vtkPolydata to vtkImageData. How can I convert 
> this???
>
> Thanks in advance
>
> Regards
>
> Manoj
>




More information about the vtkusers mailing list