<div dir="ltr">See:<div><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataPointNormals">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataPointNormals</a><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 15, 2013 at 10:29 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">
<div>HI,</div>&nbsp;<div>&nbsp; &nbsp;my result vtp file is as following:<br><div><font size="1"><br></font></div><div><font size="1">&lt;?xml version=&quot;1.0&quot;?&gt;</font></div><div><font size="1">&lt;VTKFile type=&quot;PolyData&quot; version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot; compressor=&quot;vtkZLibDataCompressor&quot;&gt;</font></div>
<div><font size="1">&nbsp; &lt;PolyData&gt;</font></div><div><font size="1">&nbsp; &nbsp; &lt;Piece NumberOfPoints=&quot;9617&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NumberOfVerts=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NumberOfLines=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NumberOfStrips=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NumberOfPolys=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;PointData&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/PointData&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;CellData&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/CellData&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;Points&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Float32&quot; Name=&quot;Points&quot; NumberOfComponents=&quot;3&quot; format=&quot;appended&quot; RangeMin=&quot;63.129833223&quot; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;85.854495209&quot; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/Points&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;Verts&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27368&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27384&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/Verts&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;Lines&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27400&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27416&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/Lines&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;Strips&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27432&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27448&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/Strips&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &lt;Polys&gt;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27464&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;appended&quot; RangeMin=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RangeMax=&quot;&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; offset=&quot;27480&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /&gt;</font></div>
<div><font size="1">&nbsp; &nbsp; &nbsp; &lt;/Polys&gt;</font></div><div><font size="1">&nbsp; &nbsp; &lt;/Piece&gt;</font></div><div><font size="1">&nbsp; &lt;/PolyData&gt;</font></div><div><font size="1">&nbsp; &lt;AppendedData encoding=&quot;base64&quot;&gt;</font></div>
<div><font size="1"><br></font></div><div><font size="1">my vtp file missed the information:</font></div><div class="im"><div><font size="1">&nbsp;</font></div><div><font size="1">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font><span style="font-size:x-small">&lt;PointData&nbsp;Normals=&quot;Normals&quot;&gt;</span></div>
<span style="font-size:x-small">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Float32&quot;&nbsp;Name=&quot;Normals&quot;&nbsp;NumberOfComponents=&quot;3&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;0.9999999539&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;1.0000000487&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;</span><br style="font-size:x-small">
<span style="font-size:x-small">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;vtkOriginalPointIds&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;128448&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;1541392&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;</span><br style="font-size:x-small">
<span style="font-size:x-small">&nbsp; &nbsp; &nbsp;&nbsp;</span><div><font size="1"><br></font></div></div><div><font size="1">&nbsp; </font><font size="4">&nbsp;How can I add the normal information? &nbsp;In the example&nbsp;<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP</a>, the method for adding normal is not mentioned.&nbsp;</font></div>
<div><font size="4"><br></font></div><div><font size="4">&nbsp; &nbsp; Thanks</font></div><div><font size="4"><br></font></div><div><font size="4">Chenxi</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font size="1"><br></font></div>
<div><font size="1"><br></font></div><br><blockquote style="padding-left:5px;margin-left:5px;border-left:#a0c6e5 2px solid;margin-right:0">-----原始邮件-----<br>
<b>发件人:</b> &quot;Bill Lorensen&quot; &lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;<br>
<b>发送时间:</b> 2013年8月16日 星期五<br>
<b>收件人:</b> &quot;Chenxi Zhang&quot; &lt;<a href="mailto:chenxizhang@fudan.edu.cn" target="_blank">chenxizhang@fudan.edu.cn</a>&gt;<br>
<b>抄送:</b> &quot;VTK Users&quot; &lt;<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>&gt;<br>
<b>主题:</b> Re: [vtkusers] Problem of writing vtp file<div><div class="h5"><br><br><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>&nbsp;&nbsp;&nbsp;I&nbsp;have&nbsp;a&nbsp;set&nbsp;of&nbsp;points.I&nbsp;want&nbsp;to&nbsp;creat&nbsp;a&nbsp;vtp&nbsp;file&nbsp;like&nbsp;that:<br><br><font size="1">&nbsp;&lt;VTKFile&nbsp;type=&quot;PolyData&quot;&nbsp;version=&quot;0.1&quot;&nbsp;byte_order=&quot;LittleEndian&quot;&gt;<br>

&nbsp;&nbsp;&lt;PolyData&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Piece&nbsp;NumberOfPoints=&quot;128449&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NumberOfVerts=&quot;128449&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NumberOfLines=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NumberOfStrips=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NumberOfPolys=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<font color="#ff0000">PointData&nbsp;Normals=&quot;Normals&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Float32&quot;&nbsp;Name=&quot;Normals&quot;&nbsp;NumberOfComponents=&quot;3&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;0.9999999539&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;1.0000000487&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;vtkOriginalPointIds&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;0&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;128448&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;1541392&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>&lt;/PointData&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;CellData&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/CellData&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Points&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Float32&quot;&nbsp;Name=&quot;Points&quot;&nbsp;NumberOfComponents=&quot;3&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;0.0080462906331&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;0.11603941536&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;2055192&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Points&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Verts&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;connectivity&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;3596584&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;offsets&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4110384&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Verts&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Lines&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;connectivity&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624184&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;offsets&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624188&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Lines&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Strips&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;connectivity&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624192&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;offsets&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624196&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Strips&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Polys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;connectivity&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624200&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;DataArray&nbsp;type=&quot;Int32&quot;&nbsp;Name=&quot;offsets&quot;&nbsp;format=&quot;appended&quot;&nbsp;RangeMin=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RangeMax=&quot;&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;offset=&quot;4624204&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Polys&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Piece&gt;<br>&nbsp;&nbsp;&lt;/PolyData&gt;<br>&nbsp;&nbsp;&lt;AppendedData&nbsp;encoding=&quot;raw&quot;&gt;</font><br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;I&nbsp;followed&nbsp;the&nbsp;example:<br>&nbsp;&nbsp;&nbsp;<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP</a>,<br>

&nbsp;&nbsp;&nbsp;but&nbsp;I&nbsp;can&#39;t&nbsp;creat&nbsp;the&nbsp;vtp&nbsp;like&nbsp;the&nbsp;above.<br><br>&nbsp;&nbsp;&nbsp;Could&nbsp;you&nbsp;please&nbsp;tell&nbsp;me&nbsp;what&nbsp;went&nbsp;wrong?<br><br>&nbsp;&nbsp;&nbsp;Thanks&nbsp;a&nbsp;lot.<span><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>
</div></div></blockquote><br><span></span></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>