<div dir="ltr"><div>As for me there is no enough details to provide you with helpful advice.<br></div><div>I am not sure I can follow what you said either.<br></div><div>If you want just to be able to read some of the vtk file formats, start with file format (extension) you want to read.<br>
Google vtk file format. For example some details on forma can be found at:<br><a href="http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html">http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html</a><br>
<br><br></div><div>But in this case why would you ask questions about vtkCellData or other VTK classes?<br></div><div>If you are going to use vtk classes give details on the dataset you are trying to work with.<br><br></div>
<div>Regards,<br></div><div> Alex<br></div><div><br><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 8, 2013 at 10:30 AM, Michal Szostakiewicz <span dir="ltr"><<a href="mailto:creed@icm.edu.pl" target="_blank">creed@icm.edu.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all!<br>
<br>
I'm not really a VTK user, but I just want to load a VTK file into my<br>
software. I have a problem with reading cell data. As I couldn't find a<br>
documentation on that, I thought it would be good idea to ask here, but if<br>
the answer to my question is written somewhere, please just give me the<br>
link.<br>
<br>
If I understand correctly, the cell data is described in vtkCellData<br>
class, which is collection of vtkDataArray-s. I currently access this data<br>
array with GetComponent method (I believe there is a better way, but I<br>
don't know it) but for that I need to specify the cell's ID or the cell's<br>
index in the tuple.<br>
<br>
Is this the same ID I give in vtkPointSet's GetCell(int id) method?<br>
<br>
Because it sometimes works well, but other times produces some strange<br>
results... And vtkCell does not have any GetID() method (and it looks like<br>
GetVTKid() is not the one I'm looking for)<br>
<br>
<br>
Best regards,<br>
Michał<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>