BUG: triSurfaceSearch: clear hits before using.

This commit is contained in:
mattijs 2011-06-24 16:15:25 +01:00
parent 5e8b74ad09
commit a96dd6584a

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));