[vtkusers] Scale for QVTKOpenGLWidget.

Zoltan Kovacs Zoltan.Kovacs at esi-group.com
Thu Aug 9 11:06:56 EDT 2018

Hi Sankhesh,

Oh yes, it works perfectly! Thank you very much!

Kind regards,

From: Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>
Sent: Donnerstag, 9. August 2018 16:56
To: Zoltan Kovacs <Zoltan.Kovacs at esi-group.com>
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Scale for QVTKOpenGLWidget.

Hi Zoltan,

You need to call vtkRenderer::ResetCamera() after adding the actor to the renderer.


On Thu, Aug 9, 2018 at 10:14 AM Zoltan Kovacs <Zoltan.Kovacs at esi-group.com<mailto: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,

Powered by www.kitware.com<http://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:
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/d43c2877/attachment.html>

More information about the vtkusers mailing list