[vtkusers] setOrigin() of plane is slowing the rendering

Ken Martin ken.martin at kitware.com
Tue Feb 2 12:42:28 EST 2016


Changing the origin will cause the plane to rebuild on the next render.
Depending on the resolution/dimensions of the plane that could be costly. A
10x10 plane should be super fast. A 10000x10000 plane I would expect to be
really slow. Not sure if that is the issue, just an idea.

Thanks
Ken

On Tue, Feb 2, 2016 at 12:33 PM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:

> Hello everyone,
>
> I have a question that is related to time performance.
> I am currently using the method SetOrigin() to modify the origin of a plane
> in vtk. When I move other actors using a transform or changing directly the
> UserMatrix I basically encounter no issue at all related to time
> performance.
> However, when it comes to changing the origin of the plane, all my program
> slows down. Would you know if that's normal?
> If that is, what would be an other way to proceed?
>
> I still think that it should not take that long, and that there's something
> wrong.
> Indeed all I get is 3 doubles from an other part of the program (not
> related
> to the rendering, GUI side), and fetch these 3 doubles to the SetOrigin()
> method. This SetOrigin() call is repeated a given number of iterations.
> I have checked that when I comment  this part of the code the rendering is
> just fine and my program runs normally.
>
> I'm using vtk6 and windows (though I don't think this is an OS-related
> issue).
>
> Thanks in advance.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/setOrigin-of-plane-is-slowing-the-rendering-tp5736303.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160202/132cc2d4/attachment.html>


More information about the vtkusers mailing list