enthought / enthought/mayavi

scalars on TensorGlyph issue

Open
#1,217 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.