Originally Posted By: Darkmatters
I have used the methods Quadraxas and mercuryus suggested, but they dont return the parameters required.

And you don't give a single description of the way you did it.

To get help, you have to describe what you already tried, in detail, not an 'I already tried that', because that isn't sufficient.

There is no challenge to someone in writing something that he has already written. It is only boring unpaid work, then. That's it.(I can assure you that the thing with the applied vertices that you test with vec_for_vertex works like charm.)