Open fred4ets opened 1 year ago
Hi,
Scalars values on TensorGlyph are not displayed correctly as shown in the following simple example:
file tensors.vtk:
Random data to test tensors ASCII DATASET UNSTRUCTURED_GRID POINTS 8 float 0 0 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 1 1
POINT_DATA 8 SCALARS scalars float LOOKUP_TABLE default 1 2 3 4 5 6 7 8
TENSORS tensors1 float 1 0 0 0 2 0 0 0 3
2 0 0 0 3 0 0 0 4
3 0 0 0 4 0 0 0 5
4 0 0 0 5 0 0 0 6
5 0 0 0 5 0 0 0 5
6 0 0 0 6 0 0 0 6
7 0 0 0 7 0 0 0 7
8 0 0 0 8 0 0 0 8
using the command line:
mayavi2 -d tensors.vtk -m TensorGlyph
It displays:
It should display:
Hi,
Scalars values on TensorGlyph are not displayed correctly as shown in the following simple example:
file tensors.vtk:
vtk DataFile Version 3.0
Random data to test tensors ASCII DATASET UNSTRUCTURED_GRID POINTS 8 float 0 0 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 1 1
POINT_DATA 8 SCALARS scalars float LOOKUP_TABLE default 1 2 3 4 5 6 7 8
TENSORS tensors1 float 1 0 0 0 2 0 0 0 3
2 0 0 0 3 0 0 0 4
3 0 0 0 4 0 0 0 5
4 0 0 0 5 0 0 0 6
5 0 0 0 5 0 0 0 5
6 0 0 0 6 0 0 0 6
7 0 0 0 7 0 0 0 7
8 0 0 0 8 0 0 0 8
using the command line:
mayavi2 -d tensors.vtk -m TensorGlyph
It displays:![Capture d’écran du 2023-03-14 10-04-29](https://user-images.githubusercontent.com/35263926/224950581-35a4ef23-9003-4b60-9632-884e3d6a4566.png)
It should display:![Capture d’écran du 2023-03-14 10-03-38](https://user-images.githubusercontent.com/35263926/224950673-a53c7927-4596-4281-9bb0-0be100e9de51.png)