Commit abc6380
authored
fix(planar): map dynamic-volume flattened indices to their group-local slice (#2801)
getVolumeImageIdIndexWorldPoint assumed a one-to-one imageId to k-slice
mapping, but StreamingDynamicImageVolume flattens its imageIds across
all dimension groups while dimensions[2] is the slice count of a single
group. A referenced image or explicitly carried initial slice from any
later dimension group therefore had a flattened index of at least
dimensions[2], and the clamp sent every such image to the final slice.
Convert the flattened index through the volume's own
flatImageIdIndexToImageIdIndex mapping (duck-typed; static volumes have
no such method and pass through unchanged) before resolving the IJK
world center.1 parent 6d2d80b commit abc6380
2 files changed
Lines changed: 37 additions & 1 deletion
File tree
- packages/core
- src/RenderingEngine/GenericViewport/Planar
- test
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
348 | 362 | | |
349 | 363 | | |
350 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
854 | 876 | | |
855 | 877 | | |
856 | 878 | | |
| |||
0 commit comments