<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">Hi,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">&nbsp;&nbsp; It works perfect, but why do&nbsp;I need to double the number of cells? Please clarify it.</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>&nbsp;</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">Thanks,</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">Hayden.<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"><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> mirko heuegger &lt;mheuegger@gmail.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Hayden Smith &lt;s_hayden_28@yahoo.com&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> Bill Lorensen &lt;bill.lorensen@gmail.com&gt;; "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, April 29, 2013 10:22 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>
<DIV id=yiv2769608784>
<DIV dir=ltr>Hello!
<DIV><BR></DIV>
<DIV>When I use:</DIV>
<DIV><BR></DIV>
<DIV>CELLS 10 20</DIV>
<DIV>
<DIV>1 1</DIV>
<DIV>1 2</DIV>
<DIV>1 3</DIV>
<DIV>1 4</DIV>
<DIV>1 5</DIV>
<DIV>1 6</DIV>
<DIV>1 7</DIV>
<DIV>1 8</DIV>
<DIV>1 9</DIV>
<DIV>1 10</DIV>
<DIV><BR></DIV>
<DIV>and&nbsp;</DIV>
<DIV><BR></DIV>
<DIV>CELL_TYPES 10</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV>1</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Then I'm able to load this file in Paraview.&nbsp;</DIV>
<DIV>(see &lt;<A href="http://www.vtk.org/VTK/img/file-formats.pdf" rel=nofollow target=_blank>http://www.vtk.org/VTK/img/file-formats.pdf</A>&gt; for more details)<BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>hth</DIV>
<DIV><BR></DIV>
<DIV>mirko</DIV></DIV>
<DIV><BR></DIV></DIV>
<DIV class=yiv2769608784gmail_extra><BR><BR>
<DIV class=yiv2769608784gmail_quote>On Mon, Apr 29, 2013 at 4:27 PM, Hayden Smith <SPAN dir=ltr>&lt;<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>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class=yiv2769608784gmail_quote>
<DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV><SPAN>Hello,</SPAN></DIV>
<DIV><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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; FONT-SIZE: 16px"><SPAN></SPAN>&nbsp;</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>CELL_TYPES 10</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>0</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>0</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>0</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>:</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>:</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>:</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>etc.</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN></SPAN>&nbsp;</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>oe&nbsp; </SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>CELLS 10</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>1 0</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>1 1</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>1 2</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>:</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>:</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>etc.</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN></SPAN>&nbsp;</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>This also does not work.</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN></SPAN>&nbsp;</DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>Please explain a bit more.<VAR></VAR></SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>Regards,</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><SPAN>Shamima.</SPAN></DIV>
<DIV style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 16px"><BR></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 dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; MIN-HEIGHT: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px"></DIV><FONT face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Bill Lorensen &lt;<A href="mailto:bill.lorensen@gmail.com" rel=nofollow target=_blank ymailto="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</A>&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Hayden Smith &lt;<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>&gt; <BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> "<A href="mailto:vtkusers@vtk.org" rel=nofollow target=_blank ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A>" &lt;<A href="mailto:vtkusers@vtk.org" rel=nofollow target=_blank
 ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A>&gt; <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><BR>
<DIV>
<DIV>
<DIV class=yiv2769608784h5>
<DIV dir=ltr>VTK data are 0 offset. looks like you are treating them as 1 offset. 
<DIV><BR></DIV></DIV></DIV></DIV>
<DIV><BR><BR>
<DIV>
<DIV>
<DIV class=yiv2769608784h5>On Sun, Apr 28, 2013 at 11:43 PM, Hayden Smith <SPAN dir=ltr>&lt;<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>&gt;</SPAN> wrote:<BR></DIV></DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">
<DIV>
<DIV class=yiv2769608784h5>
<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>&nbsp;</DIV>
<DIV>Please help me fix the error.Thanks,</DIV>
<DIV>Hayden.<VAR></VAR></DIV></DIV></DIV><BR>_______________________________________________<BR></DIV></DIV>Powered by <A href="http://www.kitware.com/" rel=nofollow target=_blank>http://www.kitware.com/</A>
<DIV class=yiv2769608784im><BR><BR>Visit other Kitware open-source projects at <A href="http://www.kitware.com/opensource/opensource.html" rel=nofollow 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" rel=nofollow 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" rel=nofollow target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></DIV></BLOCKQUOTE></DIV>
<DIV class=yiv2769608784im><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Unpaid intern in BillsBasement at noware dot com<BR></DIV></DIV></DIV><BR><BR></DIV></DIV></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 <A href="http://www.kitware.com/opensource/opensource.html" rel=nofollow 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" rel=nofollow 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" rel=nofollow target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR><BR clear=all>
<DIV><BR></DIV>-- <BR>Real programmers don't document; if it was<BR>hard to write, it should be hard to understand. </DIV></DIV><BR><BR></DIV></DIV></DIV></div></body></html>