Unrolling, projecting, and stretching of curved surfaces into a plane