You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use datastore segment index when loading ad-hoc meshes (#8922)
### URL of deployed dev instance (used for testing):
- https://adhocdatastoresegmentindex.webknossos.xyz
### Steps to test:
- Get a segment index file for l4_sample from
https://www.notion.so/scalableminds/Test-Datasets-c0563be9c4a4499dae4e16d9b2497cfb?source=copy_link#27db51644c63800ea207ee7674502373
and register it in the datasource-properties.json (merge with existing
attachments block if needed)
```
"attachments" : {
"segmentIndex" : {
"name" : "segment_index_file",
"path" : "./segmentation/segmentIndex/l4_sample_segment_index_file.hdf5",
"dataFormat" : "hdf5"
},
}
```
- Load ad-hoc mesh from position `3629, 3489, 1024` (Segment 41)
- mesh should now show the second unconnected piece
<img width="305" height="262" alt="image"
src="https://github.com/user-attachments/assets/9717192f-e38b-4f33-8c26-19a020def3d5"
/>
- Also load adhoc mesh from volume annotation with some brushed
segments, should work without errors
- For static segmentation layer without segment index file, adhoc meshes
should still be loadable (they won’t show unconnected pieces though)
- Also load the same mesh via the backend fullMesh.stl route with `curl
'http://localhost:9000/data/datasets/68da42fbd90000f3132f9921/layers/segmentation/meshes/fullMesh.stl?token=secretSampleUserToken'
-X POST -H 'Accept-Encoding: gzip, deflate, br' -H 'content-type:
application/json' --data-raw '{"segmentId": 41, "mag": [8, 8, 2]}'
--output ~/out.stl` (insert dataset id from your local wk instance),
inspect result, e.g. in meshlab. Should also show both pieces.
### Issues:
- fixes#7615
some context: https://scm.slack.com/archives/C5AKLAV0B/p1757940808856039
------
- [x] Added changelog entry (create a `$PR_NUMBER.md` file in
`unreleased_changes` or use `./tools/create-changelog-entry.py`)
- [x] Removed dev-only changes like prints and application.conf edits
- [x] Considered [common edge
cases](../blob/master/.github/common_edge_cases.md)
- [x] Needs datastore update after deployment
---------
Co-authored-by: Tom Herold <[email protected]>
Co-authored-by: Charlie Meister <[email protected]>
Co-authored-by: Charlie Meister <[email protected]>
0 commit comments