Closed GoogleCodeExporter closed 8 years ago
Drag knife compensation seems to work ( I've only tried simple cases ),
by adding this code in the profile() function in kurve_funcs.py
offset_curve.OffsetForward(0.5, True)
Adding it after the curve has been offset, so that the tool radius and
offset_extra values are also used. So the code looks like this.
if extend_at_end > 0.0:
span = offset_curve.GetLastSpan()
new_end = span.v.p + span.GetVector(1.0) * extend_at_end
offset_curve.append(new_end)
offset_curve.OffsetForward(0.5, True)
# remove tags further than radius from the offset kurve
new_tags = []
for tag in tags:
if tag.dist(offset_curve) <= radius + 0.001:
new_tags.append(tag)
tags = new_tags
I hope this helps.
Dan.
Original comment by danhe...@gmail.com
on 9 Oct 2014 at 8:11
Dear Dan,
thank you very much for, this is good news!
Unfortunately, I cannot get any result by doing the changes in the
kurve_funcs.py file.
I tested very basic shapes, but the resulting g-code contained only the normal
tool offset.
Is it necessary to recompile HeeksCNC?
Thanks,
Felix
Original comment by Felix.b...@softpath.de
on 10 Oct 2014 at 12:18
Original issue reported on code.google.com by
Felix.b...@softpath.de
on 9 Oct 2014 at 7:40