[vtkusers] creating polydata

David Doria daviddoria at gmail.com
Wed Aug 14 10:39:30 EDT 2013


On Wed, Aug 14, 2013 at 9:52 AM, david bahn <bahndavid2006 at gmail.com> wrote:
> Hi,
>     I have a set of points and pointdata of each point, I want to create a
> vtkpolydata set using the points and and their values. Please tell me how to
> create a vtkPolyData set using a given set of points in c++.


I'm not sure what you mean by you have a "polydata of each point", but
to make a polydata from a vtkPoints, just use SetPoints, as
demonstrated here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ColoredPoints

David



More information about the vtkusers mailing list