gitpush-force / heekscnc

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

patch for CRC use in Heekscad emc2b_crc #289

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i have made some changes in the kurve_funktion.py and the emc2b.py

now it generates a perfect CRC path to use in emc2

Original issue reported on code.google.com by sammello...@gmail.com on 21 Feb 2011 at 3:37

Attachments:

GoogleCodeExporter commented 8 years ago
i discoverd that it only works for the Noth point correct 
so we need to find a better algorithem ther is also a function for this 
includet crc_start_point()
got to use this 

this function needs the points from the Rollon Roloff to calculate a start point

Original comment by sammello...@gmail.com on 22 Feb 2011 at 9:12

GoogleCodeExporter commented 8 years ago
perfect to work with is this  in kurve_funktion.py

def 
add_CRC_start_line(curve,roll_on_curve,roll_off_curve,radius,direction,crc_start
_point):
    first_span = curve.GetFirstSpan()
    v = first_span.GetVector(0.0)
    if direction == 'right':
        off_v = area.Point(v.y, -v.x)
    else:
        off_v = area.Point(-v.y, v.x)
    startpoint_roll_on = roll_on_curve.FirstVertex().p
    crc_start = startpoint_roll_on + off_v * radius + v * radius
    crc_start_point.x = crc_start.x 
    crc_start_point.y = crc_start.y 

Original comment by sammello...@gmail.com on 22 Feb 2011 at 6:35

Attachments:

GoogleCodeExporter commented 8 years ago
Dan Falck has added these changes to HeeksCNC. Thanks for this contribution.

Original comment by danhe...@gmail.com on 28 Feb 2011 at 10:02