[vtkusers] (no subject)

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Apr 22 03:58:44 EDT 2003


Анна,
	My link was not pointing to the FAQ ??
	To be sure I copy/paste the answer from Christopher (hope you don't 
mind Chris ?)

[snip]
 > Did you try reader Update or UpdateWholeExtent?
[snip]

Yet Another HTH ;)
mathieu
Ps: please keep in mind that VTK is command driven, so you won't get 
anything until you ask for it !


Анна Найман wrote:
> Hello.
> I'm also interested in this question, so I followed the link, you wrote in your answer. And I did't find answer to my question. I have polydata file, ths is not unstructured grid, as it's in FAQ, which you point to. Can you write answer directly in the text of your letter? I would be appreciate to you.
> 
> 
> Anna Naiman(Russia)
> 
> 
>>http://vtk.org/pipermail/vtkusers/2003-April/017424.html
> 
> 
>>[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.
> 
> 
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/




More information about the vtkusers mailing list