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

2D images become non-pickable after changing cmap #1187

Open
sudmat opened this issue Sep 3, 2024 · 2 comments
Open

2D images become non-pickable after changing cmap #1187

sudmat opened this issue Sep 3, 2024 · 2 comments
Labels

Comments

@sudmat
Copy link

sudmat commented Sep 3, 2024

Hi, I found a strange thing when running the spline_draw example.

Below is the officially provided code (vedo\examples\advanced\spline_draw.py) which works fine.
image

But when I changed the pic cmap to binary_r, I could no longer select the points on the image because the event.actor became None.
image

I am not sure if this is a feature or bug, but it seems not making sense if the pickability depends on the cmap. Any information would be appreciated!

@sudmat sudmat changed the title 2D images becomes non-pickable after changing cmap 2D images become non-pickable after changing cmap Sep 3, 2024
@marcomusy marcomusy added the bug label Sep 4, 2024
@marcomusy
Copy link
Owner

This is quite strange ! I don't understand why that happens.. one possible way around is to create a quad mesh from the image, and that works:

pic.cmap("binary_r")
pic = pic.tomesh()

@sudmat
Copy link
Author

sudmat commented Sep 19, 2024

This is quite strange ! I don't understand why that happens.. one possible way around is to create a quad mesh from the image, and that works:

pic.cmap("binary_r")
pic = pic.tomesh()

Thank you and I'll try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants