Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/OrthancSlicesLoader.cpp @ 648:1088d4c4d78c
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 13 May 2019 17:19:04 +0200 |
parents | 6af3099ed8da |
children | 9a474e90e832 |
comparison
equal
deleted
inserted
replaced
647:6af3099ed8da | 648:1088d4c4d78c |
---|---|
189 } | 189 } |
190 | 190 |
191 | 191 |
192 void OrthancSlicesLoader::SortAndFinalizeSlices() | 192 void OrthancSlicesLoader::SortAndFinalizeSlices() |
193 { | 193 { |
194 bool ok = false; | 194 bool ok = slices_.Sort(); |
195 | |
196 if (slices_.GetSlicesCount() > 0) | |
197 { | |
198 Vector normal; | |
199 if (slices_.SelectNormal(normal)) | |
200 { | |
201 slices_.FilterNormal(normal); | |
202 slices_.SetNormal(normal); | |
203 slices_.Sort(); | |
204 ok = true; | |
205 } | |
206 } | |
207 | 195 |
208 state_ = State_GeometryReady; | 196 state_ = State_GeometryReady; |
209 | 197 |
210 if (ok) | 198 if (ok) |
211 { | 199 { |