In order to "see" the points in ParaView, you would need to create a vtkVertex cell for each point. In VTK, a "vertex" is a cell (and will be visible in ParaView); a "point" is just an (x, y, z) coordinate.<br>
<br>- Amy<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 9:35 AM, Syrkina Ekaterina <span dir="ltr"><syrkinae@ethz.ch></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I recently needed to display point cloud in paraview and "converted"<br>
vtkPoints to vtkPolyData this way:<br>
<br>
vtkPolyData *data = vtkPolyData::New();<br>
vtkPoints *points = vtkPoints::New();<br>
// some code to read points from text file into vtkPoints object //<br>
data->SetPoints(points);<br>
<br>
It didn't solve my problem, since paraview displays only points<br>
associated by geometry, so one has to define faces or smth else. But<br>
maybe it solves your problem.<br>
<br>
Best,<br>
Katya<br>
<div><div></div><div class="Wj3C7c"><br>
> -----Original Message-----<br>
> From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a><br>
> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of kent williams<br>
> Sent: Thursday, February 19, 2009 3:47 PM<br>
> To: VTK users group<br>
> Subject: Re: [vtkusers] vtkPoints to vtkPolyData<br>
><br>
> I'm not sure what you're asking. Are you saying you have a set of 3D<br>
> points, and want to convert them into a polygon? Then Dean's function<br>
> works just fine. It assumes that your points are ordered, and it's up<br>
> to you to make sure they're co-planar, but that function is 3D.<br>
><br>
> If you're doing something more complicated, you need to be more<br>
> specific about what you're trying.<br>
><br>
> On Thu, Feb 19, 2009 at 6:10 AM, Daniel Meier<br>
> <<a href="mailto:daniel.meier@oleco.net">daniel.meier@oleco.net</a>> wrote:<br>
> > Hi all,<br>
> ><br>
> > I'm new to vtk. How can I convert vtkPoints to vtkPolydata.<br>
> The points<br>
> > represent an object in 3D. I have found<br>
> ConvertPointSequenceToPolyData (<br>
> ><br>
> <a href="http://www.vtk.org/pipermail/vtkusers/2007-November/093317.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/2007-November/093317.htm</a><br>
> l ) from Dean<br>
> > Inglis which works fine in 2D but how can this be done in 3D?<br>
> ><br>
> > Thanks for any suggestions,<br>
> ><br>
> > Daniel<br>
> > ________________________________<br>
> > versendet mit <a href="http://www.oleco.de" target="_blank">www.oleco.de</a> Mail - Anmeldung und Nutzung kostenlos!<br>
> > Oleco <a href="http://www.netlcr.org" target="_blank">www.netlcr.org</a> - jetzt auch mit Spamschutz.<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<br>
> > <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:<br>
> > <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>
> ><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<br>
> <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:<br>
> <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>
_______________________________________________<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>
</div></div></blockquote></div><br>