Thats good news!
Did you write it in Phyton? I was also trying to write some code. But did not figured out yet how to find the intersection points of the z-axis. Do you mind sharing the code with me? I would love to learn how you did this calculating.