cadquery-contrib
cadquery-contrib copied to clipboard
cylindrical_gear.py ValueError: Cannot build face(s): outer wire is not closed
I am trying to run the example code from the cylindrical_gear.py but get the error as below, if there is any solution I can solve this and make it start running?:
Using port 3939 taken from config file
Jupyter console not installed
Traceback (most recent call last):
File "/Users/zihan/Desktop/LLM4CAD/Dataset/IncorrectExamples/cylindrical_gear.py", line 135, in
Gears have traditionally been hard to do correctly (issue for context on CadQuery and gears). I did not contribute the gear plugin, so I'm not familiar with it. You could try calling close() on teeths on line 95 before trying to extrude. If there is just one last missing segment to close , that will usually fix it. However, if each of the 2D tooth profiles has gaps between them, calling close() will not fix those.
Potentially related CadQuery PR.