enthought / mayavi

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

CustomGridPlane issue #1218

Open fred4ets opened 1 year ago

fred4ets commented 1 year ago

Running the following example, with the file heart.vti in data,

mayavi -d heart.vti -m CustomGridPlane

raises the error that ImageData has no attribute 'whole_extent'.

In fact, ImageData has 'extent' attribute.

Replacing, line 213 in components/custom_grid_plane.py

extents = self.plane.input.whole_extent

by

extents = self.plane.input.extent

fixes the issue.

Debian x86_64, VTK 9.1, Python 3.9.2, ETS from source