[vtkusers] vtkPoints2D -> vtkPolyData?

David Doria daviddoria+vtk at gmail.com
Sat Jan 9 11:10:07 EST 2010


I tried to do this:

vtkPoints2D* points = vtkPoints2D::New();
vtkPolyData* polydata = vtkPolyData::New();
polydata->SetPoints(points);

But it says vtkPolyData::SetPoints only takes a vtkPoints*

There is no vtkPolyData2D, so I was just wondering why that is and
what you are supposed to do with vtkPoints2D?

In particular, this was for this example:
http://www.cmake.org/Wiki/VTK/Examples/vtkGlyph2D

Thanks,

David



More information about the vtkusers mailing list