The following tool will generate g-code for flattening your table surface. You can first test the generated code on a simulator. It works fine on my machine. If you have some suggestions or bug to report please use the contact page. Thanks and I hope you find it useful!
Pingback: How to flatten the CNC table | psychoul brain gears