[Paraview] Camera clipping planes
Brad King
brad.king at kitware.com
Mon Nov 1 21:21:37 EST 2004
Patrick Brockmann wrote:
> Hi all,
>
> In paraview, is there a way to set a camera with your own location of
> the near and far clipping planes ?
>
> I really need this feature to hide the far scene of my objets
> (climate earth models watched with orthographic projection).
I do not think this is currently possible. For a particular viewpoint
you can use a clip filter to chop away one side of the data.
> With VTK API in python, I have been able to compute this with the
> following lines:
> def ProjOrthoResetClippingRange(obj, event):
> camera=ren1.GetActiveCamera()
> camera.SetFocalPoint(0,0,0)
> camera_dist=camera.GetDistance()
> camera.SetClippingRange(0.1,camera_dist)
>
> ren1=vtk.vtkRenderer()
> ren1.AddObserver("ResetCameraEvent",ProjOrthoResetClippingRange)
> ren1.AddObserver("EndEvent",ProjOrthoResetClippingRange)
>
> Let me know if this feature could be add in paraview ?
You can add it as a feature request:
http://www.paraview.org/Bug
-Brad
More information about the ParaView
mailing list