I’ve often mulled the idea of writing a gcode creator myself. My thought was more for the first layer, so I can control the… stroke (? thinking penmanship) of the printer so I can create a specific pattern on the finished surface. Such as text.
Things where the printing process can be as important as the printed shape.
I think you are on to something here…
I am dreaming of a volumetric and surface texture-mapped version of OpenScad that writes to gcode as opposed to a .stl shell. We just are so limited by the ‘shell’.