Skip to content
Snippets Groups Projects
Commit 0b18291a authored by mattijs's avatar mattijs
Browse files

BUG: triSurfaceSearch: did not clear hits

parent 1ee83d90
Branches
Tags
No related merge requests found
...@@ -201,9 +201,8 @@ const ...@@ -201,9 +201,8 @@ const
if (inter.hit()) if (inter.hit())
{ {
label sz = hits.size(); hits.setSize(1);
hits.setSize(sz+1); hits[0] = inter;
hits[sz] = inter;
const vector dirVec(end-start); const vector dirVec(end-start);
const scalar magSqrDirVec(magSqr(dirVec)); const scalar magSqrDirVec(magSqr(dirVec));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment