[vtkusers] how to display point cloud with VTK?

Andrew Maclean andrew.amaclean at gmail.com
Mon Sep 24 22:50:32 EDT 2007


You can also use vtkParticleReader.



On 9/24/07, Kevin H. Hobbs <hobbsk at ohiou.edu> wrote:
>
> On Mon, 2007-09-24 at 11:51 +1200, jim yu wrote:
> > hi, guys
> >
> > i want to display point cloud. i know the points could be represented
> > by vtkPolyData. i create the vtkPoints into which i insert several
> > points. but nothing is displayed.
> >
>
> vtkPoints are not rendered. Only "cells" are rendered. The cell type you
> want is a "Vertex". You need to create a vtkPolyData, add your vtkPoints
> to it, create a vtkCellArray that defines each point as being part of a
> vertex, and add your verts to the poly data, and I think you should be
> set.
>
> It looks like vtkVertexGlyphFilter could do what you want, so can
> vtkMaskPoints.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>


-- 
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney  2006  NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070925/43550e46/attachment.htm>


More information about the vtkusers mailing list