[vtkusers] plot a huge amount of spheres

Gib Bogle g.bogle at auckland.ac.nz
Thu Aug 22 10:45:04 EDT 2013


You need only multiple actors, all using the same mapper.

On 23/08/2013 2:39 a.m., curator wrote:
> Hi all,
>
> 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.
>
> 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?
>
> regards,
> curator
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand

http://www.bioeng.auckland.ac.nz

g.bogle at auckland.ac.nz
(64-9) 373-7599 Ext. 87030




More information about the vtkusers mailing list