<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Hello,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"> Does it mean I should write as follows:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">CELL_TYPES 10</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">0</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">0</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">0</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">etc.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">oe </SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">CELLS 10</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">1 0</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">1 1</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">1 2</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">:</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">etc.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">This also does not work.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Please explain a bit more.<VAR id=yui-ie-cursor></VAR></SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Regards,</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Shamima.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><BR style="RIGHT: auto"></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="RIGHT: auto" dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr contenteditable="false" readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Bill Lorensen <bill.lorensen@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Hayden Smith <s_hayden_28@yahoo.com> <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> "vtkusers@vtk.org" <vtkusers@vtk.org> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 29, 2013 9:11 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [vtkusers] Error reading cell type<BR></FONT></DIV>
<DIV class=y_msg_container><BR>
<META content=off http-equiv=x-dns-prefetch-control>
<DIV id=yiv1286871911>
<DIV dir=ltr>VTK data are 0 offset. looks like you are treating them as 1 offset.
<DIV><BR></DIV></DIV>
<DIV class=yiv1286871911gmail_extra><BR><BR>
<DIV class=yiv1286871911gmail_quote>On Sun, Apr 28, 2013 at 11:43 PM, Hayden Smith <SPAN dir=ltr><<A href="mailto:s_hayden_28@yahoo.com" rel=nofollow target=_blank ymailto="mailto:s_hayden_28@yahoo.com">s_hayden_28@yahoo.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=yiv1286871911gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<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/" rel=nofollow target=_blank>http://www.kitware.com/</A><BR><BR>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Unpaid intern in BillsBasement at noware dot com<BR></DIV></DIV>
<META content=on http-equiv=x-dns-prefetch-control><BR><BR></DIV></DIV></DIV></div></body></html>