[vtkusers] Scale for QVTKOpenGLWidget.
Sankhesh Jhaveri
sankhesh.jhaveri at kitware.com
Thu Aug 9 10:55:50 EDT 2018
Hi Zoltan,
You need to call vtkRenderer::ResetCamera() after adding the actor to the
renderer.
Best,
Sankhesh
On Thu, Aug 9, 2018 at 10:14 AM Zoltan Kovacs <Zoltan.Kovacs at esi-group.com>
wrote:
> Dear all,
>
>
>
> I use the example https://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL to
> read STL files which works fine with proper auto scales for any STL object
> in the screen. However, when I read and render an STL file with the same
> code but in a QVTKOpenGLWidget then the loaded STL object is too small in
> the screen and I need to zoom it. Is there any way to make the auto scale
> properly for this widget as in the case of the example code? Thank you for
> your help!
>
>
>
> Kind regards,
>
> Zoltan
>
>
>
>
> _______________________________________________
> 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
>
--
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180809/224fa539/attachment.html>
More information about the vtkusers
mailing list