3D part design with Inkscape and openscad part 10: Thread module improvements

2 min read
By Bob
3D part design with Inkscape and openscad part 10: Thread module improvements

My first attempt at the thread module was a good way to make a helix but not a very good way to make threads, a two dimensional object is not well suited for it. With the changes I made I can now adjust the profile to any shape from pointed to round, the only drawback is it takes forever to render. But for anyone interested in experimenting here's the code:

I set up the customizer:

Then I made a new module:

This is still a work in progress and the hull operation can probably be optimized but it comes a lot closer to what I had in mind:

I'm still not happy with the rendering speed, and I'm sure I can cut out more of the code, but it is progress.

A 20mm diameter thread 35 mm long took 2 minutes 36 seconds to render:

click for larger image

The results are pretty good:

experimental method using circles uses only 4 lines of code