[vtkusers] How to read this!

Arsham Mesbah arsham at uga.edu
Wed Sep 30 09:41:23 EDT 2009


I have a raw data that I am trying to read using VTK the data for mat is as
follows:

LINES 18281 1716999
41 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25.........
95 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 6...........

so basically you have 18281  lines and the first number in the line "41"
here for the first line shows how many point Ids you gonna have in that
line! (points are connected to create a line!) I need to store the points in
to the vector! so I have the vector 2D  and I just need to adjust one of the
dimensions according to how many there are in a line! How can I read only
the first Number?

I tried
vtkPolyData* fbData = vtkPolyData::New();
fbData = poly_Reader->GetOutput();

I read number of points and cells (here number of cells is one of the
dimensions in the vector)  but I cant find smth to just read the first
element of the line and then put the rest in to the vector according to that
number!   Any idea how to do this?
-- 
Sincerely Yours,
A.M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090930/772b5bee/attachment.htm>


More information about the vtkusers mailing list