Commit df72b85
authored
Fix ad-hoc mesh closing edges on layer borders (#9143)
Ad-hoc meshing showed some open edges
- with segment index: at layer topleft borders and layer bottomright
borders
- without segment index: only at layer topleft borders
The topleft problem was caused because the backend didn’t like negative
requested coordinates, leading to crash fixes which shifted the toplefts
into the layer bbox. This PR fixes this in the backend and undoes this
change in the frontend, so negative coordinates are again sent, giving a
clean upper edge.
The bottomright problem was caused because the segment index doesn’t
indicate anything below the layer bbox. The neighbors case would add a
cube outside of the layer, providing the outer edge, but the segment
index case would skip that. Now the frontend embiggens the cubes to
request if they align with the bottomright edges.
### URL of deployed dev instance (used for testing):
- https://adhocmeshedges.webknossos.xyz
### Steps to test:
- Request some ad-hoc meshes that touch the layer borders with and
without segment index
- test also with a dataset that starts at 0,0,0 so you can test that the
backend now handles the negative-coordinate requests. l4_sample doesn’t
test this.
### Issues:
- fixes #9069
------
- [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 deployment1 parent eed62c4 commit df72b85
File tree
5 files changed
+52
-21
lines changed- frontend/javascripts
- admin
- viewer/model
- bucket_data_handling
- sagas/meshes
- unreleased_changes
- webknossos-datastore/app/com/scalableminds/webknossos/datastore/services
5 files changed
+52
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
1965 | 1964 | | |
1966 | 1965 | | |
1967 | 1966 | | |
1968 | | - | |
| 1967 | + | |
1969 | 1968 | | |
1970 | 1969 | | |
1971 | 1970 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
| |||
Lines changed: 43 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | 473 | | |
476 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
477 | 490 | | |
478 | 491 | | |
479 | 492 | | |
| |||
482 | 495 | | |
483 | 496 | | |
484 | 497 | | |
485 | | - | |
| 498 | + | |
486 | 499 | | |
487 | 500 | | |
488 | 501 | | |
| |||
495 | 508 | | |
496 | 509 | | |
497 | 510 | | |
498 | | - | |
499 | | - | |
500 | 511 | | |
501 | 512 | | |
502 | 513 | | |
| |||
506 | 517 | | |
507 | 518 | | |
508 | 519 | | |
509 | | - | |
| 520 | + | |
510 | 521 | | |
511 | 522 | | |
512 | 523 | | |
513 | | - | |
| 524 | + | |
514 | 525 | | |
515 | 526 | | |
516 | 527 | | |
| |||
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
553 | 587 | | |
554 | 588 | | |
555 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments