michox / Wire-Bender

A 3D printable 1D Wire Bender with a shape generation script
0 stars 0 forks source link

generate_g_code.py doesn't work #1

Open indexofrefraction opened 10 months ago

indexofrefraction commented 10 months ago

hi,

line 51 throws an error and should probably be length = float(smp.N(

but also after fixing the script doesn't produce the intended output (tried using https://ncviewer.com)

if you're in the mood somewhen, it would be nice to check if that is the calculation or the gcode generation :)

michox commented 10 months ago

Hi, does that ncviewer have an option for wire bending? If you try to plot this like an xy layer without any modification, you will get garbage. In a wire bender, the one axis represents the wire feed, while the other one represents the bend. When I programmed it and did the calculation, I plotted the original curve and the calculated curve, and at least for my simple spiral, it produced an adequate approximation, so I don't think it's the calculation, but probably how you view the gcode. Unfortunately, I have no use for this project at the moment and no capacity to continue working on it, but hope it can help you somehow.

indexofrefraction commented 10 months ago

hi ... that is valuable info, tx ! hopefully i can figure it out .-)