<div dir="ltr">If you already have 100 actors try option 1 and see if that meets your needs.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 4, 2017 at 10:59 AM, M. Jordan <span dir="ltr"><<a href="mailto:mjordan@live.at" target="_blank">mjordan@live.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-616103834115005293divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Ideally I would like to change 100 spheres depending on an array of doubles (all spheres are changing radius).<br>
Moreover, I have to change the opacity and color of every sphere individually, whereby i need 100 actors.<br>
<br>
Any idea which solution ist the best for my problem?<br>
Thank you very much for your help!<br>
</p>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-616103834115005293divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Von:</b> Ken Martin <<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>><br>
<b>Gesendet:</b> Freitag, 04. August 2017 16:28<br>
<b>An:</b> M. Jordan<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Betreff:</b> Re: [vtkusers] Automatically change radius of sphere when a variable changes its value</font>
<div> </div>
</div>
<div>
<div dir="ltr">1) actor->SetScale(...) instead of changing the sphere source
<div><br>
</div>
<div>or</div>
<div><br>
</div>
<div>2) use a Glyph3DMapper with a scale array to control the scale of each sphere</div>
<div><br>
</div>
<div>or </div>
<div><br>
</div>
<div>3) vtkOpenGLSphereMapper with a scale array </div>
<div><br>
</div>
<div>Which solution works best depends on the specifics of your use case, ala is only one sphere changing radius?, are they all?, are they all changing by the same amount? one actor? 100 actors? etc. </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Aug 4, 2017 at 10:00 AM, M. Jordan <span dir="ltr">
<<a href="mailto:mjordan@live.at" target="_blank">mjordan@live.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-616103834115005293m_-5450314516652720073divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<p>Hello,<br>
<br>
I have a scene with many spheres (about 100) in my QVTK-Widget.<br>
Now I would like to achieve that the radii of the spheres change automatically when a variable changes its value.<br>
<br>
Right now I add the spheres to the scene, start a timer and in the timer callback I change the radius of the SphereSources depending on the variable. Finally, I call
<span>qvtkwidget->update(); to update the spheres in my scene.<br>
<br>
It works, but i would like to improve the speed. Any ideas how to update spheres faster? Is there any possibility to only "re-render" one sphere and not the whole scene?<br>
<br>
Thank you!<br>
</span><br>
</p>
</div>
</div>
<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/opensou<wbr>rce/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_FA<wbr>Q</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/mail<wbr>man/listinfo/vtkusers</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-616103834115005293gmail_signature">
<div dir="ltr">
<div>Ken Martin PhD
<div>Distinguished Engineer<br>
<span style="font-size:12.8px">Kitware Inc.</span><br>
</div>
<div>28 Corporate Drive<br>
Clifton Park NY 12065<br>
<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>
</div>
</font></span></div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><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></div>
</div>