Added 3D ellipse drawing function.