I have a raw data that I am trying to read using VTK the data for mat is as follows: <br><br>LINES 18281 1716999<br>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.........<br>95 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 6...........<br>
<br>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? <br>
<br>I tried <br>vtkPolyData* fbData = vtkPolyData::New(); <br clear="all">fbData = poly_Reader->GetOutput(); <br><br>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? <br>
-- <br>Sincerely Yours,<br>A.M <br>