[vtkusers] how to avoid resize a sphere object when render window gets changed

Oleksandr Malyushytsky omalyushytskyvtkuser at gmail.com
Mon Aug 6 18:23:57 EDT 2018

First thing to understand is that geometry is not changed.  Sphere radius
remains the same.
Your camera does change according to viewport change . So visually you see
it different on the screen.

If you want object to appear always the same size on the screen you might

It uses vtkDistanceToCamera to scaler the objects.

On Mon, Aug 6, 2018 at 7:05 AM, sergii shynkaruk <
sergii.shynkaruk at atracsys.com> wrote:

> Hello everyone!
> I've just recently started using VTK and in my project I need to keep a
> sphere unchanged. I tried this example -
> https://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere. But
> when
> I resize a window, my sphere automatically resizes as well.
> Or if I set radius = SetRaduis(10) or  SetRaduis(0.1), sphere appears with
> the same size, which I think is automatically adjusted with respect to main
> window size.
> Could you please suggest anything about it?
> Thanks in advance,
> Sergii
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180806/df575ec6/attachment.html>

More information about the vtkusers mailing list