[vtkusers] Visualizing Points in space

John Biddiscombe biddisco at cscs.ch
Tue Sep 5 05:14:02 EDT 2006


Mike

I have written a program called sparticles which renders spheres for 
points using a custom mapper. the web page is here
http://www.cscs.ch/a-display.php?id=170

but more intersting for you, would be the mapper, which you can use 
directly in your code
try looking here for a svn repository with the mapper in (look for 
vtkPointSprites)
https://svn.cscs.ch/vtkContrib/trunk/

it is intended to render polydata points, but you could easily just 
create an empty polydata object then 
setpoints->MyUnstructuredGrid->Getpoints()))
and the mapper will render them. On a good machine you'll get 
30-50million spheres per second, about 1 million per dataset works not 
too bad.

JB

> I have a vtkUnstructuredGrid object with about a 100,000 thousand points. I
> would like to put a "sphere" on each one.. Or even just a Tetrahedron to
> keep memory down. What is the most efficient way to do this?
>    Do I need an actor for each point? And a Mapper for each?
>
> Thanks
>   


-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/about/BJohn.php
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82





More information about the vtkusers mailing list