Skip to content

Commit

Permalink
Merge pull request #521 from HS7499/contrib_surfacenormal
Browse files Browse the repository at this point in the history
Updated the inner loop counter
  • Loading branch information
pomerlef authored Oct 4, 2023
2 parents 3ace94a + e52a1f4 commit 2e7a92d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pointmatcher/DataPointsFilters/SurfaceNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ void SurfaceNormalDataPointsFilter<T>::inPlaceFilter(
const size_t idxSize = idx.size();
Vector tmp_eigenVa = eigenVa;
Matrix tmp_eigenVe = eigenVe;
for(size_t i=0; i<idxSize; ++i)
for(size_t j=0; j<idxSize; ++j)
{
eigenVa(i,0) = tmp_eigenVa(idx[i], 0);
eigenVe.col(i) = tmp_eigenVe.col(idx[i]);
eigenVa(j,0) = tmp_eigenVa(idx[j], 0);
eigenVe.col(j) = tmp_eigenVe.col(idx[j]);
}
}
}
Expand Down

0 comments on commit 2e7a92d

Please sign in to comment.