Mercurial > hg > orthanc-stl
comparison Sources/StructureSetGeometry.cpp @ 40:8a1daa321afe
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Apr 2024 17:50:06 +0200 |
parents | ee3bc8f7df5b |
children | ce2333b5cb00 |
comparison
equal
deleted
inserted
replaced
39:b6910092bcca | 40:8a1daa321afe |
---|---|
174 | 174 |
175 size_t countSupport = 0; | 175 size_t countSupport = 0; |
176 | 176 |
177 std::list<size_t>::const_iterator it = candidates.begin(); | 177 std::list<size_t>::const_iterator it = candidates.begin(); |
178 size_t reference = *it; | 178 size_t reference = *it; |
179 it++; | 179 ++it; |
180 | 180 |
181 while (it != candidates.end()) | 181 while (it != candidates.end()) |
182 { | 182 { |
183 double d = (projections[*it] - projections[reference]) / slicesSpacing_; | 183 double d = (projections[*it] - projections[reference]) / slicesSpacing_; |
184 if (STLToolbox::IsNear(d, round(d))) | 184 if (STLToolbox::IsNear(d, round(d))) |
188 else | 188 else |
189 { | 189 { |
190 next.push_back(*it); | 190 next.push_back(*it); |
191 } | 191 } |
192 | 192 |
193 it++; | 193 ++it; |
194 } | 194 } |
195 | 195 |
196 if (first || | 196 if (first || |
197 countSupport > bestSupport) | 197 countSupport > bestSupport) |
198 { | 198 { |