<div dir="ltr">What is wrong with the file create?<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 15, 2013 at 12:43 PM, Chenxi Zhang <span dir="ltr">&lt;<a href="mailto:chenxizhang@fudan.edu.cn" target="_blank">chenxizhang@fudan.edu.cn</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">HI<br><br>   I have a set of points.I want to creat a vtp file like that:<br><br><font size="1"> &lt;VTKFile type=&quot;PolyData&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot;&gt;<br>
  &lt;PolyData&gt;<br>    &lt;Piece NumberOfPoints=&quot;128449&quot;               NumberOfVerts=&quot;128449&quot;               NumberOfLines=&quot;0&quot;                    NumberOfStrips=&quot;0&quot;                    NumberOfPolys=&quot;0&quot;                   &gt;<br>
      &lt;PointData Normals=&quot;Normals&quot;&gt;<br>        &lt;DataArray type=&quot;Float32&quot; Name=&quot;Normals&quot; NumberOfComponents=&quot;3&quot; format=&quot;appended&quot; RangeMin=&quot;0.9999999539&quot;         RangeMax=&quot;1.0000000487&quot;         offset=&quot;0&quot;                   /&gt;<br>
        &lt;DataArray type=&quot;Int32&quot; Name=&quot;vtkOriginalPointIds&quot; format=&quot;appended&quot; RangeMin=&quot;0&quot;                    RangeMax=&quot;128448&quot;               offset=&quot;1541392&quot;             /&gt;<br>
      &lt;/PointData&gt;<br>      &lt;CellData&gt;<br>      &lt;/CellData&gt;<br>      &lt;Points&gt;<br>        &lt;DataArray type=&quot;Float32&quot; Name=&quot;Points&quot; NumberOfComponents=&quot;3&quot; format=&quot;appended&quot; RangeMin=&quot;0.0080462906331&quot;      RangeMax=&quot;0.11603941536&quot;        offset=&quot;2055192&quot;             /&gt;<br>
      &lt;/Points&gt;<br>      &lt;Verts&gt;<br>        &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;3596584&quot;             /&gt;<br>
        &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4110384&quot;             /&gt;<br>
      &lt;/Verts&gt;<br>      &lt;Lines&gt;<br>        &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624184&quot;             /&gt;<br>
        &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624188&quot;             /&gt;<br>
      &lt;/Lines&gt;<br>      &lt;Strips&gt;<br>        &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624192&quot;             /&gt;<br>
        &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624196&quot;             /&gt;<br>
      &lt;/Strips&gt;<br>      &lt;Polys&gt;<br>        &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624200&quot;             /&gt;<br>
        &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot;                     RangeMax=&quot;&quot;                     offset=&quot;4624204&quot;             /&gt;<br>
      &lt;/Polys&gt;<br>    &lt;/Piece&gt;<br>  &lt;/PolyData&gt;<br>  &lt;AppendedData encoding=&quot;raw&quot;&gt;</font><br>    <br>   I followed the example:<br>   <a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP</a>,<br>
   but I can&#39;t creat the vtp like the above.<br><br>   Could you please tell me what went wrong?<br><br>   Thanks a lot.<span class="HOEnZb"><font color="#888888"><br><br>Chenxi<br><br><br></font></span><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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" 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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>