Sorry I&#39;ve found that there&#39;s one more line with directive &quot;DIMENSIONS&quot;<div><br></div><div><div># vtk DataFile Version 3.0</div><div>vtk output</div><div>ASCII</div><div>DATASET STRUCTURED_GRID</div><div>
DIMENSIONS 20 30 40</div><div>POINTS 24000 float</div><div><br></div><div>.............</div><div><br></div><div>and obviously, 20*30*40 == 24,000. Given this, how should I arrange those points to get the exact same result as paraview?</div>
<div><br></div><div>If I have to do it manually, maybe I should start working with smaller model, but is there really no documentation on this?????(to Kitware : if it&#39;s NDA please let me know)</div><br><div class="gmail_quote">
On Mon, Mar 15, 2010 at 10:45 AM, ÀÌÁ¤±Ô <span dir="ltr">&lt;<a href="mailto:glazex2@naver.com">glazex2@naver.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></div><div class="h5"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Hi David,<div><br></div><div>Thank you for your reply and the suggestion, however the file I&#39;m working on is so-called a legacy VTK file that does not have the newer XML structure. But from the wiki page that you suggested, I found more information.</div>

<div><br></div><div><span style="font-family:sans-serif;font-size:13px;line-height:19px"><h2 style="color:black;background-color:initial;font-weight:normal;margin-top:0px;margin-right:0px;margin-bottom:0.6em;margin-left:0px;padding-top:0.5em;padding-bottom:0.17em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170, 170, 170);font-size:19px">

<span>Structured Grid</span></h2><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">Regular topology and irregular geometry. That is, every point has a left, right, up, down, front, back neighbor. The points, however, do not lie on a grid! You must explicitly indicate the coordinates of each point.</p>

<p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">This data structure is common in finite difference analysis.</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

<br></p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">This information gives me food for thought, but is not clear enough that which goes which.</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

For example, if I have</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">x1,y2,z3,x2,y2,z3,x3,y3,z3,x4,y4,z4,x5,y5,z5,x6,y6,z6,x7,y7,z7,x8,y8,z8</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

I guess it would be something like</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">(x1,y1,z1),(x2,y2,z2),(x3,y3,z3),(x4,y4,z4)</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

for the first face.. but what about the next face?? If it have to share some points(maybe 2, if it have to) with the first face, what would it be like?</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

Also, if it indeed share some points with its neighboring grids, how many grid should I expect from n points?</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">
<br></p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">Truly yours,</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">

--</p><p style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:1.5em">Jeonggyu Lee</p></span></div></span><br></div></div><div><div></div><div class="h5"><div class="gmail_quote">On Mon, Mar 15, 2010 at 10:22 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.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></div><div><div class="gmail_quote">On Mon, Mar 15, 2010 at 11:19 AM, ÀÌÁ¤±Ô <span dir="ltr">&lt;<a href="mailto:glazex2@naver.com" target="_blank">glazex2@naver.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<div><br></div><div>I am trying to parse a .VTK file with UNSTRUCTURED_GRID but this just have data of points.</div><div>I&#39;ve looked for more information for this but all I found is</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">



The Visualization Toolkit supports five different dataset formats: structured points, structured grid, rectilinear</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">



grid, unstructured grid, and polygonal data. Data with implicit topology (structured data such as vtkImageData and</blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">



vtkStructuredGrid) are ordered with x increasing fastest, then y, then z. These formats are as follows.</blockquote></div><div><br></div><div>So I guess somehow I have to infer the topology from these points. I&#39;ve tried Paraview and it renders it as a set of rectangles(I&#39;ve tired to render surface with wireframes and so on)..</div>



<div>I see some hint there that points are ordered with x-ascending order, but how the index is consists up is not mentioned in any documents.....</div><div>Anybody done this before? or have more information for this?</div>



<div><br></div><div>PS : If you are someone at Kitware, would you please, please direct me to the right information?????</div><div><br></div><font color="#888888"><div>--</div><div>Jeonggyu Lee</div><div></div></font></blockquote>


</div><br></div></div><div>Do you have an existing .vtk file that you need to read? If not, I would suggest using the XML .vtu format - then you can use:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/IO/ReadUnstructuredGrid" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/IO/ReadUnstructuredGrid</a></div>


<div><br clear="all">Thanks,<br><font color="#888888"><br>David</font></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>