[OpenSCAD] module [maybe later function] spiral(rev, hfac, wfac, base_r, sp_r)

Ronaldo rcmpersiano at gmail.com
Sun Sep 9 13:39:20 EDT 2018

NateTG wrote
> This one might make more sense.
> coil.scad <http://forum.openscad.org/file/t2140/coil.scad>  
> There may be some other way to do things, but this calculates the path the
> spring is on and then 'extrudes' along that path.

The coil code is indeed a specific sweep of a circle along a path. It has
however many cracks and it is inadequate for 3d printing for instance. There
are many codes out there aiming to sweep a planar section along a path. The
following is one more version that resorts to the heterodox hull of a
degenerated polyhedron that some people would argue against but which
simplifies the code a lot. For simplicity, this sweep does not avoid
undesirable twists along the path as can be seen by running

sweep(coilpath(), 3dsquare(1));

coil_sweep.scad <http://forum.openscad.org/file/t1275/coil_sweep.scad>  


Sent from: http://forum.openscad.org/

More information about the Discuss mailing list