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

Python Hardwareselector example needs updating #581

Open
S0Phon opened this issue Jul 5, 2019 · 0 comments
Open

Python Hardwareselector example needs updating #581

S0Phon opened this issue Jul 5, 2019 · 0 comments

Comments

@S0Phon
Copy link

S0Phon commented Jul 5, 2019

I have been trying to work with the hardware selector (https://lorensen.github.io/VTKExamples/site/Python/Visualization/HardwareSelector/) and had been having problems until it was pointed out to me that the x and y values in hsel.SetArea(0, 0, x, y) should be replaced with x-1 and y-1 respectively to give hsel.SetArea(0, 0, x-1, y-1).

My original question and the proposed solution on this issue (and one of the rendering on an intel gpu) is at the following link. The above modification fixed the behaviour of the selector and a workaround for the rendering was also found.
https://discourse.vtk.org/t/visible-cell-selection-hardwareselector-py-example-is-not-working-reliably/1262/10

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

No branches or pull requests

1 participant