Theoritical foundations of computer graphics and cad