satovey / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
0 stars 0 forks source link

Drag knife compensation combined with tool offset #360

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Dan,

thank you very much for creating heekscnc!

I use it together with LinuxCNC, QCAD and a self build milling machine (2,25m x 
1,25mx 0,2m) in order to mill different types of rod connectors from ABS 
plastic material for prototypes of a bicycle weather protection device and 
prototypes of aluminum blades and hubs for windmills. 

This works really great with heekscnc!

Now, I have to roll-cut and heat-cut PVC and polyester film and fabric:
For this application it is necessary to add seam allowance and I thought to use 
the tool offset of HEEKSCNC for this task. Additionally I would like to add 
drag knife compensation for the cutter-tools to the toolpath.

Do you think this could be a working solution and did you eventually implement 
drag knife compensation in heekscnc, already?

Thank you very much!
With best regards,
Felix

Original issue reported on code.google.com by Felix.b...@softpath.de on 9 Oct 2014 at 7:40

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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