Skip to content

BUG: Set vertices for glyph source.#1103

Merged
prabhuramachandran merged 3 commits into
enthought:masterfrom
prabhuramachandran:fix-mglyph-source-bug
Nov 8, 2021
Merged

BUG: Set vertices for glyph source.#1103
prabhuramachandran merged 3 commits into
enthought:masterfrom
prabhuramachandran:fix-mglyph-source-bug

Conversation

@prabhuramachandran
Copy link
Copy Markdown
Member

We were abusing the polys earlier to set the scalar_scatter cell
information but it seems safer and more correct to use the verts. This
fixes #1071.

We were abusing the polys earlier to set the scalar_scatter cell
information but it seems safer and more correct to use the verts. This
fixes enthought#1071.
Will fix the 9.1.0 issues a little later.
@rahulporuri rahulporuri self-requested a review November 8, 2021 02:52
Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost LGTM with one question about the regression test

Comment thread mayavi/tests/test_mlab_source.py Outdated

def test_geometry_filter_works(self):
# This tests the bug #1071 and segfaults without the fix on VTK 9.x.
x, y, z, v, s, src = self.get_data()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like none of these variables are used in this test. can we just remove them?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I fixed this now, thanks!

@prabhuramachandran
Copy link
Copy Markdown
Member Author

Thanks, fixed!

@prabhuramachandran prabhuramachandran merged commit 25c32d2 into enthought:master Nov 8, 2021
@prabhuramachandran prabhuramachandran deleted the fix-mglyph-source-bug branch November 8, 2021 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GeometryFilter clipping segmentation fault

2 participants