Skip to content

Ignore points in the 3d window when using enable_point_picking #1894

Answered by banesullivan
p-j-smith asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment this is not implemented and I don't think it is easily supported by VTK. AFIAK, the vtkPointPicker we are using doesn't have a way to turn this off easily. However, it's SetPickFromList method seems like a good start to better limit what is pickable.. I played with this and did get it to prevent picking in the window.

What we could do is implement an option in enable_point_picking() to prevent our internal picking callbacks unless an actor was picked. I was this would be easy but its proving actually kind of flaky/difficult to implement. Here is the diff if you want to pick up where I left off:

diff --git a/pyvista/plotting/picking.py b/pyvista/plotting/picking.py
index 54d9…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@banesullivan
Comment options

@banesullivan
Comment options

@p-j-smith
Comment options

Answer selected by p-j-smith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants