enthought/mayavi

CustomGridPlane issue

Opened this issue · 0 comments

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