Milling and routing flat surfaces is pretty much the point of a CNC router ... attached to the router scans a curved part, applies bilinear interpolation to a G-Code file, and then starts machining.
G-code is effective ... comes to anything CNC. The format has many strengths, but space efficiency isn’t one of them. In fact, when it comes to 3D printing in particular file sizes can get ...