Phong Tessellation: cleaned up code a bit and fixed solveCubic for some edge cases. Overall it is still not working right. :(