[vtkusers] Polydata to Image
Bernhard Mayrhofer
berninho1 at hotmail.com
Thu Sep 23 11:59:04 EDT 2004
Thanks for yur answer
vtkWindowToImageFilter works fine. I want to get images of different viewing
directions. I use vtkCamera for this. I tried with GetPosition,
SetFocalPoint,.. but it seems i do something wrong. I never get images of
same scale with an defined point in the middle.
Maybe you have same ideas how to use this class better /correct
Thanks
Bernhard
>
>>I wrote some Code to get an image of a surface where i stored the color =
>>in scalars. I search for the closest point from the centre of the image =
>>(i use ann because it=B4s faster than vtkpointfinder). i transform the =
>>coordinates to x y which i store in an 2dim array. This code works but =
>>i =B4m not satisfied. The output of the renderer on the screen is much =
>>better than the image i created. So, maybe you have some ideas to =
>>optimize following code.
>
> ANN? Are you just trying to dump exactly what you see on the screen
> into an image file?
>
> If so I would suggest you look at vtkWindowToImageFilter. Its fast
> enough, especially compared to what you're doing below =)
>
> -tom
>
> <snip>
>
More information about the vtkusers
mailing list