CadQuery / CadQuery/cadquery

Multiple extrusions/sweep question for gear generation

Open
#676 13 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

I'm attempting to port my gear generator from openscad that can produce arbitrary helix patterns, like this:

![image](https://user-images.githubusercontent.com/901583/110029325-55ee0180-7d02-11eb-928a-8d8d3081a782.png)
![image](https://user-images.githubusercontent.com/901583/110029465-80d85580-7d02-11eb-88db-dab0eebc0941.png)

Getting the general gear profile generation working was simple, and splines are awesome:
![image](https://user-images.githubusercontent.com/901583/110029741-d6acfd80-7d02-11eb-8b8b-aa851ef71882.png)

But I'm having a hard time finding a good solution to set up the helix generation.

I would expect to be able twistExtrude multiple times (`p=p.wire().twistExtrude(5,20).wires(">Z").twistExtrude(5,-20)`), but there's something I don't understand because this just errors out. How would I extrude the top face of an object?

I had a little bit of success with sweep and an auxSpine
![image](https://user-images.githubusercontent.com/901583/110030358-9dc15880-7d03-11eb-96ae-fa63a517c691.png)

That's very satisfying, but trying to define a herringbone profile with a polyline as the auxSpine just does strange things
![image](https://user-images.githubusercontent.com/901583/110030400-aade4780-7d03-11eb-9f07-c89a915a9c91.png)

Source is here: https://github.com/wentam/Compound-planetary-gearbox-generator/blob/db55c7ff6a5a3625f614d7179e7d08a9f393230f/test.py

I'd any appreciate ideas on how to best solve this!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.