#173 vtkwriter need enhancement to write vector data correctly
Metadata
Property | Value |
---|---|
Reported by | Sreejith Pulloor Kuttanikkad (sreejith@hal.iwr.uni-heidelberg.de) |
Reported at | Aug 29, 2006 16:29 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Jan 4, 2007 17:09 |
Closed in version | Unknown |
Resolution | Fixed |
Comment |
Description
Though I am not sure about the bug here is what I found:
I think vtkfile format for a vector data should have 3 components even if it is a 2D data (in 2D case with 3rd component=0) otherwise ParaView produce an error as shown below. the sample vtkout.vtu file is attached. "
Error or warning: There was a VTK Warning in file: /home/amy/ParaViewReleaseRoot/paraview-2.4.2/VTK/Filtering/vtkDataSetAttributes.cxx (937)
vtkPointData (0x805ffe0): Can not set attribute Vectors. Incorrect number of components. "
i think DataArray elements for the vectors should be like the below with NumberOfComponents=”3” always..????
so this means even for 2D data the vtkwriter should be able to write the numberofcomponets="3" and third component of the value should be written =0 in some intelligent way..!!