scipp / scipp/plopp

Profile picking in instrument view / 3d view

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.