From: Jeff E. <gi...@gi...> - 2010-03-23 21:09:40
|
another fix for helical arcs http://git.linuxcnc.org/?p=emc2.git;a=commitdiff;h=2d8ea42 --- src/emc/rs274ngc/gcodemodule.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/emc/rs274ngc/gcodemodule.cc b/src/emc/rs274ngc/gcodemodule.cc index b2ad6e0..781c49d 100644 --- a/src/emc/rs274ngc/gcodemodule.cc +++ b/src/emc/rs274ngc/gcodemodule.cc @@ -897,7 +897,7 @@ static PyObject *rs274_arc_to_segments(PyObject *self, PyObject *args) { double tx = o[X] - cx, ty = o[Y] - cy, dc = cos(dtheta*rsteps), ds = sin(dtheta*rsteps); for(int i=0; i<steps-1; i++) { - double f = i * rsteps; + double f = (i+1) * rsteps; double p[9]; rotate(tx, ty, dc, ds); p[X] = tx + cx; |