devngc
(Devang)
1
Can I use a string type data in FieldData? When I check this file on Glance, the type of FieldData named “radiance_modifiers” is IntArray.
# vtk DataFile Version 2.0
Walls
ASCII
DATASET POLYDATA
POINTS 6 float
0.0 0.0 0.0
5.0 0.0 0.0
0.0 0.0 5.0
5.0 0.0 5.0
5.0 5.0 0.0
5.0 5.0 5.0
POLYGONS 2 10
4 0 1 3 2
4 1 4 5 3
CELL_DATA 2
NORMALS cell_normals int
0 -1 0
1 0 0
FIELD FieldData 2
radiance_reflectance 1 2 float
0.5 0.6
radiance_modifiers 2 2 char
generic_wall_0.5 generic_wall_0.6
Joachim_P
(Joachim Pouderoux)
2
A string array should be declared as string
, not char
.
devngc
(Devang)
3
Thanks for your response @Joachim_P . I just tried that but the array is not being recognized in Paraview Glance
# vtk DataFile Version 2.0
Walls
ASCII
DATASET POLYDATA
POINTS 6 float
0.0 0.0 0.0
5.0 0.0 0.0
0.0 0.0 5.0
5.0 0.0 5.0
5.0 5.0 0.0
5.0 5.0 5.0
POLYGONS 2 10
4 0 1 3 2
4 1 4 5 3
CELL_DATA 2
NORMALS cell_normals float
0 -1 0
1 0 0
FIELD FieldData 2
radiance_reflectance 1 2 float
0.5 0.6
radiance_modifiers 2 2 string
generic_wall_0.5 generic_wall_0.6
devngc
(Devang)
4
Meanwhile, I found this. Hi @jourdain, has there been any update on this?
h1773
(hp)
5
Do you find anything on the issue you raised?
This has been addressed in #2864.