Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/SlicesSorter.cpp @ 757:f7c236894c1a
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 May 2019 17:05:14 +0200 |
parents | e9339f2b5de7 |
children | a7351ad54960 |
comparison
equal
deleted
inserted
replaced
749:f3a7092ed10e | 757:f7c236894c1a |
---|---|
269 for (size_t i = 0; i < slices_.size(); i++) | 269 for (size_t i = 0; i < slices_.size(); i++) |
270 { | 270 { |
271 assert(slices_[i] != NULL); | 271 assert(slices_[i] != NULL); |
272 | 272 |
273 double tmp; | 273 double tmp; |
274 if (CoordinateSystem3D::GetDistance(tmp, slices_[i]->GetGeometry(), slice)) | 274 if (CoordinateSystem3D::ComputeDistance(tmp, slices_[i]->GetGeometry(), slice)) |
275 { | 275 { |
276 if (!found || | 276 if (!found || |
277 tmp < distance) | 277 tmp < distance) |
278 { | 278 { |
279 index = i; | 279 index = i; |