what options are out there for 3d scanning an object and then turning that into some form of gcode for machining?

its a subject I know nothing about but want to get into