Skip to content
Discussion options

You must be logged in to vote

Totally possible. use the callback argument of enable_point_picking() to track your picked points. Something like:

import pyvista as pv
from pyvista import examples

mesh = examples.download_bunny()

da_points = []
p = pv.Plotter(notebook=0)
p.add_mesh(mesh)

def callback(pt):
    da_points.append(pt)
    p.add_point_labels([pt,], ['You picked me!'], )

p.enable_point_picking(callback)
p.show()
Screen.Recording.2021-11-28.at.1.58.55.PM.mov

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@venugovh
Comment options

@banesullivan
Comment options

Answer selected by banesullivan
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
Converted from issue

This discussion was converted from issue #1885 on November 28, 2021 20:55.