ENH: In filter Tensor glyph, be able to select a field with 6 components for a symmetric tensor
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The filter Tensor glyph allows displaying 3x3 plain tensors. In our use cases, the tensors are symmetric and only 6 components are stored in the field in this order: XX, YY, ZZ, XY, XZ, YZ.
To use it, we have to duplicate the non-diagonal components and put them in the right order for Tensor Glyph: XX, YX, ZX, XY, YY, ZY, XZ, YZ, ZZ
With the filter Python Calculator, we can use the expression: hstack([SIGM[:,0], SIGM[:,3], SIGM[:,4], SIGM[:,3], SIGM[:2,1], SIGM[:,5], SIGM[:,4], SIGM[:,5], SIGM[:,2]]) But it is not straightforward for the user and source of errors.