-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Plugin Request] Gear Generator #1
Comments
Hi, I've been working on another CadQuery gear generator for some time. |
I can't try this now but how stable is your version? Sometimes I have problems with script that won't produce the same shapes upon runs while not changing parameters. It is especially true for helical gears. I've looked quickly the code for the bevel gear and im not sure what approach you use, the math associated are quite complex and figuring it out just by reading code is a bit of a pain. I would be interested in talking about it to see if we had similar approach and to try to understand why my approach would generate such bugs |
@Jojain Generally, my approach is to construct each tooth face(cq.Face) individually, then clone that face in a circular pattern to form the whole gear face, then also construct top and bottom faces. Then, stitch the resulting faces together into a shell(cq.Shell) internally using BRepBuilderAPI_Sewing. Then, make a solid out of that shell and finally apply to that solid the usual CadQuery operations such as extrude, cutThruAll etc. to form a hub, a borehole, spokes etc. |
@meadiode My approach is different in a way that I don't create surfaces and assemble them into a solid but directly use solid operations. I have however experience the same problem on spur helical gears as a non valid shape for some run of the script (but not always, which is the weird part) even thought they don't use loft but twistedExtrude. |
There has been some great work done on gears in the GitHub issues and on Discord. It would be nice to capture a gear generator as a plugin.
The text was updated successfully, but these errors were encountered: