[Paraview] Debugging vtp file
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Fri Aug 20 11:48:51 EDT 2010
Yes, point coordinates in poly-data always need to be 3 components,
hence the error.
Utkarsh
On Fri, Aug 20, 2010 at 11:37 AM, Ramsharan <r.ramsharan at gmail.com> wrote:
> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list