Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Volumes/VolumeImageGeometry.cpp @ 1768:226718777702
fix DicomVolumeImageMPRSlicer::Slice::CreateSceneLayer() for opposite normals
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 May 2021 17:18:39 +0200 |
parents | e7b4479dea6f |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1767:e7b4479dea6f | 1768:226718777702 |
---|---|
257 bool VolumeImageGeometry::DetectSlice(VolumeProjection& projection, | 257 bool VolumeImageGeometry::DetectSlice(VolumeProjection& projection, |
258 unsigned int& slice, | 258 unsigned int& slice, |
259 const CoordinateSystem3D& plane) const | 259 const CoordinateSystem3D& plane) const |
260 { | 260 { |
261 bool isOpposite; | 261 bool isOpposite; |
262 if (!DetectProjection(projection, isOpposite, plane.GetNormal()) || | 262 if (!DetectProjection(projection, isOpposite, plane.GetNormal())) |
263 isOpposite /* TODO - Error in 2021-04-27-repro-bug-HFP-HFS-cartman */) | |
264 { | 263 { |
265 return false; | 264 return false; |
266 } | 265 } |
267 | 266 |
268 // Transforms the coordinates of the origin of the plane, into the | 267 // Transforms the coordinates of the origin of the plane, into the |