Think about what your script is doing. Its tracing lines between some points forming a box around your model. Edges. What about the 'faces' of this box

You have to trace between every edge 60 times per face,for 6 faces ,thats 360 traces to make your collision detection similar to the default. There is no point doing that,because it'll slow your engine untill it becomes something like a slideshow

PS.: I'm talking about tracing every quant,forming a grid of 'edges'.