<div dir="ltr">If you are using the OpenGL2 rendering backend then vtkGlyph3DMapper is probably a better way to do that. You provide the arrow source as one input and then an array of positions and rotations as part of the other input. </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 12:25 PM, Olivier Ameline <span dir="ltr"><<a href="mailto:olivameline@gmail.com" target="_blank">olivameline@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I am using VTK for real-time deformation of an elastic rod.<br>
<br>
To do this, I need to display simultaneously 300 vtkArrowSources every 100<br>
ms (10 Hz).<br>
Thus, I initialize the 300 vtkArrowSources, then I update them in a thread<br>
by translating and<br>
rotating their actors (with the functions setPosition and RotateWXYZ).<br>
<br>
The problem is that VTK takes apparently more than 100 ms to compute the<br>
updating, leading to<br>
a quite slow application.<br>
<br>
Is there a way to optimize the VTK rendering in real-time ?<br>
<br>
Thanks for your help.<br>
<br>
Best regards,<br>
<br>
Olivier Ameline<br>
Sorbonne Universités, UPMC University Paris 06<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-slow-to-display-300-vtkArrowSource-in-real-time-tp5740730.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-slow-to-display-300-<wbr>vtkArrowSource-in-real-time-<wbr>tp5740730.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br>518 371 3971<div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">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.</span></div></div></div>
</div>