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