<div dir="ltr">Hello!<div><br></div><div style>Please read the mentioned documentation (<span style="font-size:13px;font-family:arial,sans-serif"><</span><a href="http://www.vtk.org/VTK/img/file-formats.pdf" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://www.vtk.org/VTK/img/file-formats.pdf</a><span style="font-size:13px;font-family:arial,sans-serif">>) , </span><font face="arial, sans-serif">especially page 4: Dataset Format for Unstructured Grid: </font></div>
<div style><font face="arial, sans-serif"><div>' The CELLS keyword requires two parameters: the number of cells n and the</div><div>size of the cell list size.'</div></font></div><div style><font face="arial, sans-serif"><br>
</font></div><div style><font face="arial, sans-serif">hth</font></div><div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">mirko</font></div><div style><font face="arial, sans-serif"><br>
</font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 9:36 PM, Hayden Smith <span dir="ltr"><<a href="mailto:s_hayden_28@yahoo.com" target="_blank">s_hayden_28@yahoo.com</a>></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><span>Hi,</span></div>
<div><span> It works perfect, but why do I need to double the number of cells? Please clarify it.</span></div>
<div style="font-size:16px;font-style:normal;background-color:transparent;font-family:times new roman,new york,times,serif"><span></span> </div>
<div style="font-size:16px;font-style:normal;background-color:transparent;font-family:times new roman,new york,times,serif"><span>Thanks,</span></div>
<div style="font-size:16px;font-style:normal;background-color:transparent;font-family:times new roman,new york,times,serif"><span>Hayden.<var></var></span></div>
<div style="font-size:16px;font-style:normal;background-color:transparent;font-family:times new roman,new york,times,serif"><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;PADDING-LEFT:0px;PADDING-RIGHT:0px;min-height:0px;FONT-SIZE:0px;BORDER-TOP:#ccc 1px solid;BORDER-RIGHT:#ccc 1px solid;PADDING-TOP:0px" readonly>
</div><font face="Arial"><b><span style="FONT-WEIGHT:bold">From:</span></b> mirko heuegger <<a href="mailto:mheuegger@gmail.com" target="_blank">mheuegger@gmail.com</a>><br><b><span style="FONT-WEIGHT:bold">To:</span></b> Hayden Smith <<a href="mailto:s_hayden_28@yahoo.com" target="_blank">s_hayden_28@yahoo.com</a>> <br>
<b><span style="FONT-WEIGHT:bold">Cc:</span></b> Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>>; "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>> <br>
<b><span style="FONT-WEIGHT:bold">Sent:</span></b> Monday, April 29, 2013 10:22 AM<div><div class="h5"><br><b><span style="FONT-WEIGHT:bold">Subject:</span></b> Re: [vtkusers] Error reading cell type<br></div></div></font></div>
<div><br>
<div><div><div class="h5">
<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 </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. </div>
<div>(see <<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>> 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></div><div><div><div class="h5"><br><br>
<div>On Mon, Apr 29, 2013 at 4:27 PM, Hayden Smith <span dir="ltr"><<a href="mailto:s_hayden_28@yahoo.com" rel="nofollow" target="_blank">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">
<div>
<div style="FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:12pt">
<div><span>Hello,</span></div>
<div><span> 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> </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> </div>
<div style="BACKGROUND-COLOR:transparent;FONT-STYLE:normal;FONT-FAMILY:times new roman,new york,times,serif;FONT-SIZE:16px"><span>oe </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> </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> </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 <<a href="mailto:bill.lorensen@gmail.com" rel="nofollow" target="_blank">bill.lorensen@gmail.com</a>><br><b><span style="FONT-WEIGHT:bold">To:</span></b> Hayden Smith <<a href="mailto:s_hayden_28@yahoo.com" rel="nofollow" target="_blank">s_hayden_28@yahoo.com</a>> <br>
<b><span style="FONT-WEIGHT:bold">Cc:</span></b> "<a href="mailto:vtkusers@vtk.org" rel="nofollow" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" rel="nofollow" target="_blank">vtkusers@vtk.org</a>> <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>
<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>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">s_hayden_28@yahoo.com</a>></span> wrote:<br></div></div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex">
<div>
<div>
<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></div></div>Powered by <a href="http://www.kitware.com/" rel="nofollow" target="_blank">http://www.kitware.com/</a>
<div><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><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></div></div><div class="im">Real programmers don't document; if it was<br>hard to write, it should be hard to understand. </div></div></div><br><br></div></div></div></div></div></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>