From 99638f2db9e6bc8a43a002b66e7f4d6818779dc0 Mon Sep 17 00:00:00 2001 From: Ibrahim <93064150+IbrahimCSAE@users.noreply.github.com> Date: Mon, 20 Oct 2025 17:10:27 -0400 Subject: [PATCH] force spacing 1/1 for US --- packages/core/src/RenderingEngine/StackViewport.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/core/src/RenderingEngine/StackViewport.ts b/packages/core/src/RenderingEngine/StackViewport.ts index acd24cab9..204ce7e7c 100644 --- a/packages/core/src/RenderingEngine/StackViewport.ts +++ b/packages/core/src/RenderingEngine/StackViewport.ts @@ -2452,6 +2452,12 @@ class StackViewport extends Viewport { // or the size has changed), create a new one const pixelArray = image.voxelManager.getScalarData(); + + if (this.modality === 'US') { + spacing[1] = 1 + spacing[0] = 1 + } + this._createVTKImageData({ origin, direction,