bug in fcsprocket polar patten
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
bug in fcsprocket polar patten
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.
Re: bug in fcsprocket polar patten
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.
Re: bug in fcsprocket polar patten
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.
# 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.
Re: bug in fcsprocket polar patten
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.
-
- Posts: 225
- Joined: Fri Apr 26, 2019 3:14 pm
Re: bug in fcsprocket polar patten
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
I'd stubled across this thread: https://forum.freecadweb.org/viewtopic.php?f=22&t=44525
possibly your findings are related ... ?!
Regards,
Stefan