<div dir="ltr">I don't think the file you attached is correct. Attached is an example of how a VTI file should look.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 10:35 AM, Mohammad KONESHLOO <span dir="ltr"><<a href="mailto:mkonesh@yahoo.com" target="_blank">mkonesh@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="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14pt"><div><span>Thanks Utkrash,</span></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span><br></span></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span>I read about the format used for image (vti), I tried to make a simple example as follow: but it does not work, I've chose (loop o X then Y then Z I mean (For X {For Y {For Z{}}}). </span></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span>I think the Python code create a such file too, But I doesn't work</span></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span><br></span></div><div style="background-color:transparent"><VTKFile type=”ImageData” ...></div><div style="background-color:transparent"><ImageData WholeExtent=”0 4 0 3 0 2”</div><div style="background-color:transparent">Origin=”1 1 1” Spacing=”1 1 1”></div><div style="background-color:transparent"><Piece Extent=”0 4 0 3 0 2”></div><div style="background-color:transparent"><PointData>1<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">1<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">2<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">3<span style="white-space:pre-wrap">
</span>2<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">3<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap">
</span>1</div><div style="background-color:transparent">4<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>1<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>2<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>3<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>1</div><div style="background-color:transparent">5<span style="white-space:pre-wrap"> </span>4<span style="white-space:pre-wrap"> </span>2</div><div style="background-color:transparent"></PointData></div><div style="background-color:transparent"><CellData>1</div><div style="background-color:transparent">2</div><div style="background-color:transparent">3</div><div style="background-color:transparent">4</div><div style="background-color:transparent">5</div><div style="background-color:transparent">6</div><div style="background-color:transparent">7</div><div style="background-color:transparent">8</div><div style="background-color:transparent">9</div><div style="background-color:transparent">10</div><div style="background-color:transparent">11</div><div style="background-color:transparent">12</div><div style="background-color:transparent">13</div><div style="background-color:transparent">14</div><div style="background-color:transparent">15</div><div style="background-color:transparent">16</div><div style="background-color:transparent">17</div><div style="background-color:transparent">18</div><div style="background-color:transparent">19</div><div style="background-color:transparent">20</div><div style="background-color:transparent">21</div><div style="background-color:transparent">22</div><div style="background-color:transparent">23</div><div style="background-color:transparent">24</div><div style="background-color:transparent">25</div><div style="background-color:transparent">26</div><div style="background-color:transparent">27</div><div style="background-color:transparent">28</div><div style="background-color:transparent">29</div><div style="background-color:transparent">30</div><div style="background-color:transparent">31</div><div style="background-color:transparent">32</div><div style="background-color:transparent">33</div><div style="background-color:transparent">34</div><div style="background-color:transparent">35</div><div style="background-color:transparent">36</div><div style="background-color:transparent">37</div><div style="background-color:transparent">38</div><div style="background-color:transparent">39</div><div style="background-color:transparent">40</div><div style="background-color:transparent"></CellData></div><div style="background-color:transparent"></Piece></div><div style="background-color:transparent"></ImageData></div><div style="background-color:transparent"><span></span></div><div style="background-color:transparent"></VTKFile></div><div style="background-color:transparent"><br></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">Thanks in advance</div><div><div class="h5"><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span><br></span></div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14pt"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> On Thursday, September 11, 2014 1:49 AM, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>> wrote:<br> </font> </div> <br><br> <div><div><div><div dir="ltr">Are you sure it's a "structured grid" or is an "image data"? Refer to this for difference between the two: <a rel="nofollow" shape="rect" href="http://www.paraview.org/Wiki/ParaView/Users_Guide/VTK_Data_Model" target="_blank">http://www.paraview.org/Wiki/ParaView/Users_Guide/VTK_Data_Model</a> <div><br clear="none"></div><div>Programmable filer may be the easiest way to go. Attached is an extract from the ParaView User's Guide that's currently being updated. A combination of recipes shown in Sections 14.2.1 and 14.2.4 is what should help.</div><div><br clear="none"></div><div>Utkarsh</div><div><br clear="none"><div style="width:396px;min-height:18px;max-height:18px;background-color:#f5f5f5;padding:5px;color:#222;font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid #ddd;line-height:1"><a rel="nofollow" shape="rect" href="https://docs.google.com/a/kitware.com/file/d/0B26kKqqTZSgGN2FxVDVnX0hUWEk/edit?usp=drive_web" style="display:inline-block;overflow:hidden;white-space:nowrap;text-decoration:none;padding:1px 0px;border:none;width:100%" target="_blank"><img style="vertical-align:bottom;border:none" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_pdf_list.png"> <span dir="ltr" style="color:#15c;text-decoration:none;vertical-align:bottom">ParaViewUsersGuideExtract.pdf</span></a></div></div></div><div><br clear="none"><div>On Wed, Sep 10, 2014 at 4:56 PM, Mohammad KONESHLOO via ParaView <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14pt"><div>Hi everybody,</div><div><br clear="none"></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">I'm trying to convert a big csv file to a simple structured grid (100x100x136). I imported it to Pra-view, but I could not convert it to grid using Filters-> "Table to Structured Grid". another attempt was creating a vts/vtk file from my csv file, but the structure of file is ambiguous. I couldn't find any example. </div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">In VTK pdf file regarding file formats, there
is just an example for structured point (page.18), I copied and pasted this example in Notepad++ and saved with .vts and vtk extension, but I could not open in in Paraview (4.2.0 RC1 64-bit).</div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br clear="none"></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">Do you have any example file or comment on the file structure?</div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><br clear="none"></div><div style="color:rgb(0,0,0);font-size:19px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent">Thanks</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" shape="rect" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div> </div></div></div></div></blockquote></div><br></div>