VTKHDF: Can't retrieve special vtk array
Context
Any dataset in VTK can contains some special array recognize by the library like Normals
, Tangents
...
Currently, the vtkHDF File Format (vtkHDF 2.1 and below) provides a way to specify such array by adding an additional attribut on PointData
, CellData
. However the documentation could be improved to list all supported "special" array, it mentions only Scalars
and Vectors
.
Also the implementation, vtkHDFReader
doesn't check it at all.
Possible solution
- Create a dedicate section about it in the
design_document
about VTKHDF. List all possible possible "special" array. - check it in the related reader/writer.
In the meantime, an example about how to create such attribute can be find here: https://gitlab.kitware.com/danlipsa/vtkxml-to-vtkhdf/-/blob/main/vtkxml-to-vtkhdf.py?ref_type=heads#L297
Edited by Lucas Givord