<div dir="ltr">Hello all,<div><br></div><div>I am working on a related issue the last few days. I have something a little more complex that I am wanting to draw many copies of and I need the orientation to be controllable as well as the position. Could I use a similar trick perhaps with glyphs for vectors?</div>
<div><br></div><div>Thank you,</div><div><br></div><div>Shawn Waldon</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 10:55 AM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</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">Use a vtkPolyData with points on the locations, and a VTK_VERTEX cell refering to each one.<div><br></div>
<div>Then send that into vtkGlyph to have the CPU makes the spheres which then get send to the card.</div>
<div><br></div><div>Better yet, draw it with vtkGlyph3dMapper to make the spheres via vertex programs on the GPU instead of the CPU.<br></div><div><br></div><div>Better still, bring ParaView's point sprite plugin over, which will draw the spheres via fragment programs on the GPU.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></font></span><div><div class="h5">
<br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 10:45 AM, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You need only multiple actors, all using the same mapper.<div><div><br>
<br>
On 23/08/2013 2:39 a.m., curator wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am able to draw a vtkSphere with its own vtkSphere, vtkActor and vtkMapper equipped together. Now if I need several spheres, I add multiple instances of this stuff for each sphere and add them all up to the same renderer - so far, so good.<br>
<br>
Now I need to draw a really huge amount of spheres, which are all identical except the position. Is there any more efficient way to to that than just creating N vtkActors, N vtkMappers and N vtkSpheres?<br>
<br>
regards,<br>
curator<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>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" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</blockquote>
<br>
<br></div></div><span><font color="#888888">
-- <br>
Dr. Gib Bogle<br>
Senior Research Fellow<br>
Auckland Bioengineering Institute<br>
University of Auckland<br>
New Zealand<br>
<br>
<a href="http://www.bioeng.auckland.ac.nz" target="_blank">http://www.bioeng.auckland.ac.<u></u>nz</a><br>
<br>
<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a><br>
(64-9) 373-7599 Ext. 87030</font></span><div><div><br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>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" target="_blank">http://www.vtk.org/Wiki/VTK_<u></u>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Shawn Waldon<div>Graduate Research Assistant</div><div>Department of Computer Science</div><div>University of North Carolina at Chapel Hill</div>
<div><a href="mailto:swaldon@cs.unc.edu" target="_blank">swaldon@cs.unc.edu</a></div></div>
</div>