scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
67 stars 17 forks source link

SciView: addVolume for RAI needs default behavior for voxelDimensions #381

Closed kephale closed 1 year ago

kephale commented 3 years ago

The method runs when voxelDimensions is not specified, but requires a value. As a result, this leads to:

java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0

When called with sciView.addVolume(myRAI)

skalarproduktraum commented 3 years ago

@kephale Do you have some line numbers? The voxel dimensions should be Vector3f(1.0f, 1.0f, 1.0f) if not given to addVolume.

kephale commented 1 year ago

Without a reproducing example, I assume this is addressed for similar reasons to https://github.com/scenerygraphics/sciview/issues/184