Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Set vertices for glyph source. #1103

Merged

Conversation

prabhuramachandran
Copy link
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
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

@@ -61,6 +61,13 @@ def check_dataset(self):
self.assertEqual(np.alltrue(vec == v), True)
self.assertEqual(np.alltrue(sc == s.ravel()), True)

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
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
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
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