[vtkusers] vtkPoints to vtkPolyData

Syrkina Ekaterina syrkinae at ethz.ch
Fri Feb 20 04:19:25 EST 2009


thanks for the answers! I also found some old vtk-mail with a program to
create vtkPolyData (to visualize) from a set of point coordinates:
http://www.nabble.com/VTK-Point-Cloud-td14706577.html

best,
katya

> -----Original Message-----
> From: David E DeMarle [mailto:dave.demarle at kitware.com] 
> Sent: Thursday, February 19, 2009 9:26 PM
> To: Amy Squillacote
> Cc: Syrkina Ekaterina; VTK users group
> Subject: Re: [vtkusers] vtkPoints to vtkPolyData
> 
> And one way to do that is to apply a glyph filter.
> 
> On Thu, Feb 19, 2009 at 1:31 PM, Amy Squillacote 
> <amylists at gmail.com> wrote:
> > 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.
> >
> > - Amy
> >
> > On Thu, Feb 19, 2009 at 9:35 AM, Syrkina Ekaterina 
> <syrkinae at ethz.ch> wrote:
> >>
> >> 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
> >> >
> >> _______________________________________________
> >> 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
> >
> >
> 
> 
> 
> -- 
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x109
> 



More information about the vtkusers mailing list