[vtkusers] (no subject)

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Wed Apr 16 11:51:05 EDT 2003


[quoting Christopher]

vanessa.noguesruiz at epfl.ch wrote:
> Hello.
> I would like to know how to read points from a polydata vtk file, as I do the 
> following: 
> vtkPolyDataReader *lector = vtkPolyDataReader::New();
>       lector->SetFileName ("D:/Proyecto/vtk/cube.vtk");
> vtkPolyData *info=vtkPolyData::New();
> info=lector->GetOutput();
> vtkPoints *points=vtkPoints::New();
> 		points=info->GetPoints();
> and I don't get any points pointed by "points".
> Could anyone explainme why I am not getting the data in this way? I've also 
> tried to get polygons cells and verts, but it always results NULL or a 
> exception is launched when running, although it compiles and links perfectly.
> Thanks in advance.
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

Mathieu Malaterre
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03

More information about the vtkusers mailing list