Skip to content

Commit

Permalink
fix: Handle cases where row and column cosines are missing (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik authored Jun 24, 2022
1 parent 4dcd90f commit 5bd0a70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ class StackViewport extends Viewport implements IStackViewport {
ySpacing !== image.columnPixelSpacing ||
xVoxels !== image.columns ||
yVoxels !== image.rows ||
!imagePlaneModule.rowCosines ||
!imagePlaneModule.columnCosines ||
!isEqual(imagePlaneModule.rowCosines, <Point3>rowCosines) ||
!isEqual(imagePlaneModule.columnCosines, <Point3>columnCosines)
) {
Expand Down

0 comments on commit 5bd0a70

Please sign in to comment.