-
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] Thread Generator #2
Comments
For anyone looking into this, note that most users have trouble modelling threads using helical sweeps (which is the obvious way to model them in CadQuery). The main OCCT example (the bottle) models a thread using a different method, I think it would be worth looking into basing a plugin off that technique rather than helical sweeps. Seems that if it is OCCT's main example usage that it would be more robust. PythonOCC has a demo that might help: https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_classic_occ_bottle.py |
Actually there is an example of using this approach posted on the groups and it has been worked out further here: |
Here are some experiences from Onshape users about a thread creator i made there: Very popular features
Less popular features
|
Here's a copy of the docs for the Onshape thread creator: If you're an onshape user, you can play with it here: |
Here are some implementation details that might be useful:
These functions ( excuse odd Onshape javascript-like syntax) compute thread tolerances for the classes above:
These functions create the profiles ( again, Onshape syntax, but maybe helpful to save some work ):
|
Generating threads can often lead to invalid geometry. It would be nice to capture all of the best practices into a thread generator plugin.
The text was updated successfully, but these errors were encountered: