Closed GoogleCodeExporter closed 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 lot...@foengarage.de
on 22 Feb 2011 at 9:12
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 lot...@foengarage.de
on 22 Feb 2011 at 6:35
Attachments:
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
Original issue reported on code.google.com by
lot...@foengarage.de
on 21 Feb 2011 at 3:37Attachments: