Maxscript is really slow when it comes to basic math, see for example the comments here, almost instant result in python, two and a half minutes in maxscript. That said, the major slowdown here (at least for me) were the poly operations on bigger meshes, finding the right values is fast (it's basically five lerps in…