Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Volumes/DicomVolumeImageMPRSlicer.cpp @ 1775:fca942f4b4a7
fix conversion from voxel centers to texture borders
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 May 2021 19:57:50 +0200 |
parents | f302bbddf94d |
children | 9ab251c03eda |
line wrap: on
line diff
--- a/OrthancStone/Sources/Volumes/DicomVolumeImageMPRSlicer.cpp Wed May 12 17:43:51 2021 +0200 +++ b/OrthancStone/Sources/Volumes/DicomVolumeImageMPRSlicer.cpp Wed May 12 19:57:50 2021 +0200 @@ -95,11 +95,6 @@ const CoordinateSystem3D& system = volume_.GetGeometry().GetProjectionGeometry(projection_); - /** - * TODO => There was a shift of (0.5, 0.5) introduced by - * TextureBaseSceneLayer::GetTransform(). Is it an error? - **/ - Vector pixelSpacing = volume_.GetGeometry().GetVoxelDimensions(projection_); texture->SetCuttingPlaneTransform(cuttingPlane, system.GetOrigin(),