Profile picking in instrument view / 3d view
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pythreejs Picker.ipynb example linked in the issue and inspect how point-cloud hover coordinates are reported. Trace the instrument and 3D-view entry points that use those coordinates, then determine how sc.bin can limit the nearest-point search. Done means hovering a point returns the corresponding profile or point index without scanning every pixel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100