Yet another OpenSCAD library to create helices.
There is plenty of libraries out there, but most of them are unpredictable. The height, width, angle, etc are not respected, making it very hard to create precise model.
This library is very precise, flexible and easy to use. It takes a 2D polygon and extrude it just like
2018-02-24: Added a default value for the number of segments (precision) when $fn is not defined.
hull() to join polygons has some downsides:
- Polygons needs to be extruded into 3D shape for hull to work properly.
- Concave polygons are made convex.
- Hull is overkill for what I'm doing, it takes too long to render.
The only way I can see to fix this without changing the API is to iterate through points of the polygon, and create the polyhedron manually. Unfortunately, this is not possible with the current version of OpenSCAD.
I could change the API and expect an array of points representing the polygon, but I don't like that idea. I want it to works like the other extrude functions.
A workaround for the concave issue is to create a convex polygon and extrude it with
helix_extrude. Then create another polygon, extrude it with
helix_extrude and create a difference between the two helices.
translate([10, 0, 0])