[Paraview] Debugging vtp file
Ramsharan
r.ramsharan at gmail.com
Fri Aug 20 11:37:21 EDT 2010
I have a simple vtp file to draw a 2D triangle.
################################################
<?xml version="1.0" encoding="utf-8"?>
<VTKFile type="PolyData" version="0.1" byte_order="LittleEndian">
<PolyData>
<Piece NumberOfPoints="3" NumberOfPolys="1">
<Points>
<DataArray type="Float32"
NumberOfComponents="2"
format="ascii">
0.0 0.0
1.0 0.0
0.0 1.0
</DataArray>
</Points>
<Polys>
<DataArray type="Int32" Name="connectivity"
format="ascii">
0 1 2
</DataArray>
<DataArray type="Int32" Name="offsets"
format="ascii">
3
</DataArray>
</Polys>
</Piece>
</PolyData>
</VTKFile>
#######################
When I load it with paraview, I get the following message:
"vtkPoints: Number of components is different... can't set data".
If however, I change NumberOfComponents to 3 and append a 0 at the end of
each point's coordinates,
it works fine.
Anything I am missing?
Thanks, Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100820/62f8fb79/attachment.htm>
More information about the ParaView
mailing list