<div dir="ltr">VTK data are 0 offset. looks like you are treating them as 1 offset.<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 11:43 PM, Hayden Smith <span dir="ltr">&lt;<a href="mailto:s_hayden_28@yahoo.com" target="_blank">s_hayden_28@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Dear Vtk users,</div><div> </div>
<div>   I can read the following vtk file, it shows some ouput, but also shows error: error reading cell types, if I put CELL_TYPES as 1 (VTK_VERTEX), it shows same error: </div><div> </div><div>/*****************************/</div>
<span lang="EN"><div># vtk DataFile Version 1.0</div><div></div><div>2D scalar data</div><div></div><div>ASCII</div><div></div><div>DATASET UNSTRUCTURED_GRID</div><div></div><div>POINTS 10 float</div><div></div><div>5 7 10</div>
<div></div><div>5 7 13</div><div></div><div>5 8 11.25</div><div></div><div>5 8.25 11</div><div></div><div>5 8 10</div><div></div><div>5 7 11.25</div><div></div><div>5 7.5 13</div><div></div><div>5 8 12.5</div><div></div><div>
5 7 10.3125</div><div></div><div>5 7 10.625</div><div></div><div>CELLS 10 10</div><div></div><div>1  1
 </div><div></div><div>1  2 </div><div></div><div>1  3 </div><div></div><div>1  4 </div><div></div><div>1  5 </div><div></div><div>1  6 </div><div></div><div>1  7 </div><div></div><div>1  8 </div><div></div><div>1  9 </div>
<div></div><div>1  10 </div><div></div><div>CELL_TYPES 10</div><div></div><div>POINT_DATA 10</div><div></div><div>VECTORS displacement float</div><div></div><div>5.317256 0.038328 0.009241</div><div></div><div>1.270657 0.036974 -0.467480</div>
<div></div><div>0.347197 0.061410 -1.310931</div><div></div><div>0.704583 0.061886 -1.197829</div><div></div><div>1.022699 0.056816 -0.897948</div><div></div><div>1.304252 0.057359 -0.483078</div><div></div><div>1.354688 0.053458 0.015998</div>
<div></div><div>0.838027 0.005652 0.324289</div><div></div><div>0.951906 -0.113057 0.007819</div><div></div><div>1.653968 -0.127456 0.014767</div><div></div><div>SCALARS temperature float</div><div></div><div>LOOKUP_TABLE
 default</div><div></div><div>0.1</div><div></div><div>0.2</div><div></div><div>0.3</div><div></div><div>0.4</div><div></div><div>0.5</div><div></div><div>0.6</div><div></div><div>0.7</div><div></div><div>0.8</div><div></div>
<div>0.90702939</div><div></div><div>0.90702939</div></span><div>/*****************************/</div><div> </div><div>Please help me fix the error.Thanks,</div><div>Hayden.<var></var></div></div></div><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>