enthought / enthought/mayavi

Artifact, asymetric square in ImagePlaneWidget

Open
#1,152 1 comment 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,
For data source I got scalar field (3d) and draw ImagePlaneWidget (for clarity I set texture_interplate = False, also reslice_interpolate = nearest_neighbor, also added GridPlane to view grid):

```
s = np.zeros((11,11,3), )
s[1,5,1] = .5
s[3,6,1] = .5
s[5,7,1] = .5

s[5, 1,1] = .5
s[6, 3,1] = .5
s[7, 5,1] = .5

src = self.scene.mlab.pipeline.scalar_field(s)
viz = self.scene.mlab.pipeline.image_plane_widget(src, plane_orientation='z_axes', slice_index=1, )
```
What I got: not all red squares are simmetric.
![image](https://user-images.githubusercontent.com/29224758/170998551-7ca899e7-52e3-40e7-bdca-9117b282a12c.png)
What I expect: all symmetric red squares.

I want ImagePlaneWidget element (voxel) be same dimensions as grid shape (symmetric square). But I got different shapes: square - if x or y coordinate is odd, and rectangle - if x or y is even.
Where problem could be?

Many thanks!

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.