From 2e4c5e4fe4ac19ecb69f5c961d1ca205aa982eb8 Mon Sep 17 00:00:00 2001 From: Forrest Date: Wed, 23 Oct 2024 16:16:00 -0400 Subject: [PATCH] fix(ImageMapper): handle SlicingMode.NONE --- Sources/Rendering/OpenGL/ImageMapper/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/Rendering/OpenGL/ImageMapper/index.js b/Sources/Rendering/OpenGL/ImageMapper/index.js index d384c9da821..20e7b4c3935 100644 --- a/Sources/Rendering/OpenGL/ImageMapper/index.js +++ b/Sources/Rendering/OpenGL/ImageMapper/index.js @@ -804,7 +804,12 @@ function vtkOpenGLImageMapper(publicAPI, model) { const worldToIndex = image.getWorldToIndex(); const imageDimensions = image.getDimensions(); - const sliceAxis = model.renderable.getClosestIJKAxis().ijkMode; + let sliceAxis = model.renderable.getClosestIJKAxis().ijkMode; + + // SlicingMode.NONE equates to SlicingMode.K + if (sliceAxis === SlicingMode.NONE) { + sliceAxis = SlicingMode.K; + } program.setUniform3i( 'imageDimensions',