[vtkusers] Problem of writing vtp file
Chenxi Zhang
chenxizhang at fudan.edu.cn
Thu Aug 15 12:43:37 EDT 2013
HI
I have a set of points.I want to creat a vtp file like that:
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="128449" NumberOfVerts="128449" NumberOfLines="0" NumberOfStrips="0" NumberOfPolys="0" >
<PointData Normals="Normals">
<DataArray type="Float32" Name="Normals" NumberOfComponents="3" format="appended" RangeMin="0.9999999539" RangeMax="1.0000000487" offset="0" />
<DataArray type="Int32" Name="vtkOriginalPointIds" format="appended" RangeMin="0" RangeMax="128448" offset="1541392" />
</PointData>
<CellData>
</CellData>
<Points>
<DataArray type="Float32" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0.0080462906331" RangeMax="0.11603941536" offset="2055192" />
</Points>
<Verts>
<DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="3596584" />
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4110384" />
</Verts>
<Lines>
<DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624184" />
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624188" />
</Lines>
<Strips>
<DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624192" />
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624196" />
</Strips>
<Polys>
<DataArray type="Int32" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="4624200" />
<DataArray type="Int32" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="4624204" />
</Polys>
</Piece>
</PolyData>
<AppendedData encoding="raw">
I followed the example:
http://vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP,
but I can't creat the vtp like the above.
Could you please tell me what went wrong?
Thanks a lot.
Chenxi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130816/5ae95bf3/attachment.htm>
More information about the vtkusers
mailing list