1 / 2
Helix library for OpenSCAD — image 1
1 / 2

Helix library for OpenSCAD

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

Yet another OpenSCAD library to create helices. There is plenty of libraries out there, but most of them are…

Rating
5 / 5
Likes
23
Downloads
424
Makes
0
Views
1,446
Reviews
1

Updated at source:

Model information

Category
Other Ideas
License
Creative Commons — Public Domain

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 linear_extrude and rotate_extrude.

2018-02-24: Added a default value for the number of segments (precision) when $fn is not defined.

Issues

Using 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.

Usage

include helix_extrude() translate([10, 0, 0]) circle(r=3);

Category: Other

Tags