Mercurial > hg > orthanc
comparison OrthancServer/SliceOrdering.cpp @ 3540:096c827cbf9e
indent
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Oct 2019 13:01:14 +0200 |
parents | f25e84cc5f87 |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3539:f25e84cc5f87 | 3540:096c827cbf9e |
---|---|
333 | 333 |
334 // consider only the instances with a position and correctly oriented (if they have a normal) | 334 // consider only the instances with a position and correctly oriented (if they have a normal) |
335 for (size_t i = 0; i < instances_.size(); i++) | 335 for (size_t i = 0; i < instances_.size(); i++) |
336 { | 336 { |
337 assert(instances_[i] != NULL); | 337 assert(instances_[i] != NULL); |
338 if (instances_[i]->HasPosition() && (!instances_[i]->HasNormal() || IsParallelOrOpposite(instances_[i]->GetNormal(), normal_))) | 338 if (instances_[i]->HasPosition() && |
339 (!instances_[i]->HasNormal() || | |
340 IsParallelOrOpposite(instances_[i]->GetNormal(), normal_))) | |
339 { | 341 { |
340 sortedInstances_.push_back(instances_[i]); | 342 sortedInstances_.push_back(instances_[i]); |
341 } | 343 } |
342 } | 344 } |
343 | 345 |