[vtkusers] Clipping planes

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Nov 4 09:33:34 EST 2002


Have a look at (eg) InteractorStyleTrackballCamera and you'll see

  if (this->AutoAdjustCameraClippingRange)
    {
    this->CurrentRenderer->ResetCameraClippingRange();
    }

after each movement you make. This continually resets the clippping planes
to be "a good fit". In your case the bounds of the dataset probably overlap
the front view plane or something and so a default min distance is used.
Turn off the auto adjust in the interactorstyle and manage your own clipping
ranges and see if it gets better.

JB


----- Original Message -----
From: "James C. Robinson" <j.robinson at kepler.ie>
To: "Vtkusers at Public. Kitware. Com" <vtkusers at public.kitware.com>
Sent: Monday, November 04, 2002 1:28 PM
Subject: [vtkusers] Clipping planes


> Dear All,
>
> I have written an application to view finite element results. The mesh can
> be of the order of 2000m in width/depth but may be only 10-30m thick. It
> also may have an important feature with a dimension of the order of less
> than 1m to view. My problem is that when I zoom in (using a vtkCamera) the
> near clipping plane is too far from the camera and part of the mesh is cut
> (clipped) away. I have tried resetting both the near & far values (using
> SetClippingRange & SetThickness) but to no avail.
>
> I have noticed that, if I set the majority of the mesh to be invisible,
but
> leave an object of the small dimension required, the zooming works fine. I
> can then set the overall mesh to be visible and the image looks fine.
> However, as soon as I move the camera position, a lot of the mesh is again
> clipped away. What is happening is that the clipping range is set to
values
> (automatically) that are suitable to zoom in on the small object when it
is
> on its own, but are reset to unsuitable values a soon as the whole
(larger)
> object (mesh) is visible.
>
> Has anybody any suggestion?
>
> Regards,
>
> Jim
> ______________________
>
> James C. Robinson, PhD,
> Chartered Engineer,
> Kepler Engineering Software Ltd.,
> 42 Rivergrove,
> Glanmire, Co. Cork,
> Eire
>
> Tel:         +353-21-4822028
> Tel:         +353-87-2393010
> Fax:        +353-21-4822721
> E-mail:     j.robinson at kepler.ie
> ______________________
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list