Creating a 3D canvas for drawing and rotating curved lines