As far as I understand Projecter.js, the count variable contains the number of indices, i.e. the code above is correct.. ?

I'll create an issue for the mesh raycasting code.