Skip to content
Snippets Groups Projects

BUG: Fix bounds computation in vtkMultiVolume

Merged Dženan Zukić requested to merge dzenanz/vtk:fix-multi-volume-bounds-computation into master
1 unresolved thread

This line set the homogeneous IJK coordinates incorrectly:

pointsDataCoords.emplace_back(bounds[1], bounds[3], bounds[5], 0.);

The problem is that the last component is set to 0 instead of 1 (the coordinates specify a direction vector and not a position). When this vector is multiplied by the homogeneous transformation matrix, the position is incorrect, because the translation component of the matrix is not taken into account.

fixes https://github.com/Slicer/Slicer/issues/8301

fixes #19447 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading