Sounds like a great idea!
I guess I kind of skipped over how to actually go from a finished ofMesh to a 3D print. ofMesh has this really neat .save() method that can be used to save a .ply file with the mesh. You can then open the .ply file in Cura or convert it to an stl or whatever you want in Blender. So I’m not calculating any G-code at all, just generating a mesh that will let a slicer produce working G-code for the model.
OpenCV is only used for the Delaunay triangulation algorithm. You could implement it yourself or find a different implementation, but going between OF and OpenCV is really easy thanks to the ofxCv addon (although take care of the pitfalls I mention in the post). As for precision you can just scale all the values up to your required resolution (because integers) and then scale the mesh back down (using floating point numbers).