[vtkusers] [FIX] "vtkWindowToImageFilter" ignores "vtkCamera::UseHorizontalViewAngle" in VTK 5.4.2
groups at dietschi.net
groups at dietschi.net
Thu Feb 4 09:10:10 EST 2010
Hi VTK users,
I just found a bug in "vtkWindowToImageFilter" which does lead to an
mis-rendered image if "vtkCamera::UseHorizontalViewAngle" == true.
This little patch fixes this:
Index: vtk/Rendering/vtkWindowToImageFilter.cxx
===================================================================
--- vtk/Rendering/vtkWindowToImageFilter.cxx (revision 1188)
+++ vtk/Rendering/vtkWindowToImageFilter.cxx (working copy)
@@ -296,6 +296,7 @@
cam->SetFocalDisk(cams[i]->GetFocalDisk());
cam->SetUserTransform(cams[i]->GetUserTransform());
cam->SetViewShear(cams[i]->GetViewShear());
+
+ cam->SetUseHorizontalViewAngle(cams[i]->GetUseHorizontalViewAngle());
aren->SetActiveCamera(cam);
}
Kind regards,
Michael Dietschi
Senior Software-Engineer
ProgTec GmbH
Tiefenackerstrasse 49
CH-9450 Altstätten
Phone: +41 (0) 71 755 84 46
Fax: +41 (0) 71 755 83 82
E-Mail: mdietschi at progtec.ch
More information about the vtkusers
mailing list