A user on the Forum wants to set up a 4-axis wire EDM machine. The main axes are Z and Y, moving the work.
In addition there are actuators to move the top wire guide to enable angled cuts, U and V. The G-code drives U and V separately, so the kinematics is trivial, there is no difficulty making the machine move properly However, he would like to visualise the cuts, and the FOAM view feels like a good fit. However to do that the _preview_ (only) would need to be persuaded to show (X,Y) at the bottom and (X+U,Y+V) at the top. I have looked in emcmodule, where I think that lines are drawn, but can't really follow it: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/axis/extensions/emcmodule.cc#L1846 Ideally the change would be in the Python code, to save compiling: https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/rs274/glcanon.py#L171 Is it as simple as ... glTranslatef(0, 0, self.foam_w) temp = lines # NEW temp(6) = lines(0) + lines(6) temp(7) = lines(1) + lines(7) # OLD self.draw_lines(temp, for_selection, 2*j+len(lines), 'UV') glPopMatrix() -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers