enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.28k stars 282 forks source link

scalars on TensorGlyph issue #1217

Open fred4ets opened 1 year ago

fred4ets commented 1 year ago

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

It should display: Capture d’écran du 2023-03-14 10-03-38