Remember that VTK starts numbering at 0 instead of 1.<br><br>I think you need to change the cell part to (I may have a typo but you get the idea):<br> 8 0 1 7 6 5 4 10 11<br> 8 1 2 8 7 4 3 9 10<br><br>Andy<br><br><div class="gmail_quote">
On Sun, Mar 31, 2013 at 12:07 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Did you double checked that document to see if you didn't made any mistake in the file format ?<div><br></div><div><a href="http://vtk.org/VTK/img/file-formats.pdf" target="_blank">http://vtk.org/VTK/img/file-formats.pdf</a><br>
</div><div><br></div><div>If you want you can try to create a cone/plane/sphere inside ParaView and save it as legacy ascii format to look into the file yourself.</div><div><br></div><div>Seb</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Mar 31, 2013 at 11:43 AM, Ashish Saxena <span dir="ltr"><<a href="mailto:smartashishsaxena@gmail.com" target="_blank">smartashishsaxena@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>Sir / Mam,<br><br></div>When I try to open a .vtk file made by script, the Paraview crashes unexpectedly. Below is my vtk file content..<br>
<br># vtk DataFile Version 2.0<br>Temperature Distribution Example<br>
<br>ASCII<br>DATASET UNSTRUCTURED_GRID<br>POINTS 12 float<br> 0.0000 0.0000 0.0000 <br> 0.0100 0.0000 0.0000 <br> 0.0200 0.0000 0.0000 <br> 0.0200 0.0000 0.0030 <br> 0.0100 0.0000 0.0030 <br>
0.0000 0.0000 0.0030 <br> 0.0000 0.0100 0.0000 <br> 0.0100 0.0100 0.0000 <br> 0.0200 0.0100 0.0000 <br> 0.0200 0.0100 0.0030 <br> 0.0100 0.0100 0.0030 <br> 0.0000 0.0100 0.0030 <br>
<br>CELLS 2 18<br> 8 1 2 8 7 6 5 11 12 <br> 8 <a href="tel:2%203%209%208%205%204%2010%2011" value="+12398541011" target="_blank">2 3 9 8 5 4 10 11</a> <br><br>CELL_TYPES 2<br> 12 <br> 12 <br><br>POINT_DATA 12<br>SCALARS Temperature float<br>
LOOKUP_TABLE default<br> 100.000000 <br> 49.949237 <br> 29.414048 <br>
29.417470 <br> 49.909044 <br> 100.000000 <br> 100.000000 <br> 49.949237 <br> 29.414048 <br> 29.417470 <br> 49.909044 <br> 100.000000 <br>VECTORS direction float<br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br>
1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br>
1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br> 1.000000 1.000000 1.000000 <br><br><br></div>Its a very small file but it is still not opening in Paraview. I have checked all the nodal values but still not able to find the problem. Please help with this. ThankYou.<br>
<br></div>Regards,<br><br></div>Ashish Saxena<br></div>
<br></div></div>_______________________________________________<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>