BUG: triSurfaceSearch: did not clear hits

This commit is contained in:
mattijs
2011-06-29 09:53:43 +01:00
parent 1ee83d9066
commit 0b18291a98

View File

@ -201,9 +201,8 @@ const
if (inter.hit())
{
label sz = hits.size();
hits.setSize(sz+1);
hits[sz] = inter;
hits.setSize(1);
hits[0] = inter;
const vector dirVec(end-start);
const scalar magSqrDirVec(magSqr(dirVec));