Fundamental Algorithms for Computer Graphics