[vtkusers] Rendering points and large models

Sebastien BARRE seb-ml-a at barre.nom.fr
Wed Oct 25 14:02:26 EDT 2000


At 25/10/00 18:30 +0200, kitware-vtk at kulnet.kuleuven.ac.be wrote:
>---  Forwarded by news2mail for "Joris Vanden Wyngaerd" 
><joris.vandenwyngaerd at esat.kuleuven.ac.be> ---
>
>I am working with very polydata (e.g. 2.000.000 points and 4.000.000
>triangles). When applying fitlers, memory usage quickly explodes. Even
>rendering with display lists gets me into trouble.
>For saving memory I would like to render the points and ignore the
>triangles. I found that I can use vtkPolyData and create a single cell with
>points 0,1,2,3, ... n-1. This seems like a waste of memory to me.
>
>Is it possible to draw simply draw all points in a vtkPointSet ?

As Will pointed to you, points define geometry, and cells define topology. 
Different objets might share the same geometry (the same set of points), 
but different topology, thus there is no reason for the mapper to think 
that the points define anything at all. Build a "vertice" cell :)

Apart from this, I do not know anything about your application, but 
consider trying one of the decimation algorithm to reduce your dataset. 
Also try to strip your triangles (vtkStripper), as this is a more compact 
representation.





More information about the vtkusers mailing list