bug in fcsprocket polar patten

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Bsf
Posts: 2
Joined: Sat Apr 17, 2021 2:09 pm

bug in fcsprocket polar patten

Post by Bsf »

Not sure if anyone else has noticed this but the fcsprocket generation has a bug in the polar patten code. One side of the gullet has the drawing in the wrong order, one side has the second arc and the joining line transposed. This is true for 0.20 24693 and 0.19 release, hope this is the correct place to post this. Regards Bsf.
chrisb
Veteran
Posts: 53785
Joined: Tue Mar 17, 2015 9:14 am

Re: bug in fcsprocket polar patten

Post by chrisb »

Please upload your file. Full FreeCAD infos as described in the Help forum would be beneficial too.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Bsf
Posts: 2
Joined: Sat Apr 17, 2021 2:09 pm

Re: bug in fcsprocket polar patten

Post by Bsf »

ok I think I have found the problem, it is in sprocket.py polar array section,
# rising gullet slope
w.arc(rotate(p5, alpha*n), R, 1)
w.line(rotate(p6, alpha*n))
w.arc(rotate(p7, alpha*n), E, 0)
w.arc(rotate(p8, alpha*n), F, 0)
changed it to,
# rising gullet slope
w.arc(rotate(p5, alpha*n), R, 1)
w.arc(rotate(p6, alpha*n), E, 1)
w.line(rotate(p7, alpha*n))
w.arc(rotate(p8, alpha*n), F, 0)
Sprocket is now generated as expected.
hope this is helpful, Bsf.
chrisb
Veteran
Posts: 53785
Joined: Tue Mar 17, 2015 9:14 am

Re: bug in fcsprocket polar patten

Post by chrisb »

Please place the code in <code> tags for improved readability.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
C_h_o_p_i_n
Posts: 225
Joined: Fri Apr 26, 2019 3:14 pm

Re: bug in fcsprocket polar patten

Post by C_h_o_p_i_n »

Hi all,

I'd stubled across this thread: https://forum.freecadweb.org/viewtopic.php?f=22&t=44525

possibly your findings are related ... ?!

Regards,
Stefan
Post Reply