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

Profile picking in instrument view / 3d view #89

Open
nvaytet opened this issue Jan 26, 2021 · 1 comment
Open

Profile picking in instrument view / 3d view #89

nvaytet opened this issue Jan 26, 2021 · 1 comment

Comments

@nvaytet
Copy link
Member

nvaytet commented Jan 26, 2021

See this example in pythreejs: https://github.com/jupyter-widgets/pythreejs/blob/master/examples/Picker.ipynb

Unfortunately, the index of the point over which the cursor is hovering is not returned by pythreejs (a point cloud has no faces), only the coordinate of the cursor is returned.
Performing a where search on all the pixels to find the smallest distance would be too slow, so we would have to use sc.bin to overlay a 3d grid onto the pixel positions, to then find the mininum distance on only the pixels inside the bin.

@SimonHeybrock SimonHeybrock transferred this issue from scipp/scipp Nov 21, 2022
@nvaytet
Copy link
Member Author

nvaytet commented Nov 21, 2022

Seems there was progress on the pythreejs side in the mean time that could make this easier to implement: jupyter-widgets/pythreejs#379

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