3D printing and machining of composite tooling