<div>HI,</div> <div> my result vtp file is as following:<br><div><font size="1"><br></font></div><div><font size="1"><?xml version="1.0"?></font></div><div><font size="1"><VTKFile type="PolyData" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor"></font></div><div><font size="1"> <PolyData></font></div><div><font size="1"> <Piece NumberOfPoints="9617" NumberOfVerts="0" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0" ></font></div><div><font size="1"> <PointData></font></div><div><font size="1"> </PointData></font></div><div><font size="1"> <CellData></font></div><div><font size="1"> </CellData></font></div><div><font size="1"> <Points></font></div><div><font size="1"> <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="63.129833223" RangeMax="85.854495209" offset="0" /></font></div><div><font size="1"> </Points></font></div><div><font size="1"> <Verts></font></div><div><font size="1"> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="27368" /></font></div><div><font size="1"> <DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="27384" /></font></div><div><font size="1"> </Verts></font></div><div><font size="1"> <Lines></font></div><div><font size="1"> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="27400" /></font></div><div><font size="1"> <DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="27416" /></font></div><div><font size="1"> </Lines></font></div><div><font size="1"> <Strips></font></div><div><font size="1"> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="27432" /></font></div><div><font size="1"> <DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="27448" /></font></div><div><font size="1"> </Strips></font></div><div><font size="1"> <Polys></font></div><div><font size="1"> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="27464" /></font></div><div><font size="1"> <DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="27480" /></font></div><div><font size="1"> </Polys></font></div><div><font size="1"> </Piece></font></div><div><font size="1"> </PolyData></font></div><div><font size="1"> <AppendedData encoding="base64"></font></div><div><font size="1"><br></font></div><div><font size="1">my vtp file missed the information:</font></div><div><font size="1"> </font></div><div><font size="1"> </font><span style="font-size: x-small;"><PointData Normals="Normals"></span></div><span style="font-size: x-small;"> <DataArray type="Float32" Name="Normals" NumberOfComponents="3" format="appended" RangeMin="0.9999999539" RangeMax="1.0000000487" offset="0" /></span><br style="font-size: x-small;"><span style="font-size: x-small;"> <DataArray type="Int32" Name="vtkOriginalPointIds" format="appended" RangeMin="0" RangeMax="128448" offset="1541392" /></span><br style="font-size: x-small;"><span style="font-size: x-small;"> </span><div><font size="1"><br></font></div><div><font size="1"> </font><font size="4"> How can I add the normal information? In the example <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. </font></div><div><font size="4"><br></font></div><div><font size="4"> Thanks</font></div><div><font size="4"><br></font></div><div><font size="4">Chenxi</font></div><div><font size="4"> </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> "Bill Lorensen" <bill.lorensen@gmail.com><br>
<b>发送时间:</b> 2013年8月16日 星期五<br>
<b>收件人:</b> "Chenxi Zhang" <chenxizhang@fudan.edu.cn><br>
<b>抄送:</b> "VTK Users" <vtkusers@vtk.org><br>
<b>主题:</b> Re: [vtkusers] Problem of writing vtp file<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"><<a href="mailto:chenxizhang@fudan.edu.cn" target="_blank">chenxizhang@fudan.edu.cn</a>></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"> <VTKFile type="PolyData" version="0.1" byte_order="LittleEndian"><br>
<PolyData><br> <Piece NumberOfPoints="128449" NumberOfVerts="128449" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0" ><br>
<<font color="#ff0000">PointData Normals="Normals"><br> <DataArray type="Float32" Name="Normals" NumberOfComponents="3" format="appended" RangeMin="0.9999999539" RangeMax="1.0000000487" offset="0" /><br>
<DataArray type="Int32" Name="vtkOriginalPointIds" format="appended" RangeMin="0" RangeMax="128448" offset="1541392" /><br>
</font></PointData><br> <CellData><br> </CellData><br> <Points><br> <DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0.0080462906331" RangeMax="0.11603941536" offset="2055192" /><br>
</Points><br> <Verts><br> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="3596584" /><br>
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4110384" /><br>
</Verts><br> <Lines><br> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624184" /><br>
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624188" /><br>
</Lines><br> <Strips><br> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624192" /><br>
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624196" /><br>
</Strips><br> <Polys><br> <DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624200" /><br>
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624204" /><br>
</Polys><br> </Piece><br> </PolyData><br> <AppendedData encoding="raw"></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'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>
</blockquote><br><span></span></div>