The file 'OpenSCAD Revolve: Powerful And Fast Module For Screws And More 3D Printer Model' is (scad,stl) file type, size is 376.5KB.
This OpenSCAD module allows for rotational extrusion of generic user-defined profiles,
introducing a pitch in the longitudinal direction, the most common application being
the creation of screws.
The solid is built as a single polyhedron by transforming the 2D points found in the
profile array. No boolean operation is necessary, aiming at obtaining the ultimate
performance by producing the simplest possible object for the desired level of detail.
revolve( profile, length, nthreads, f);
use <revolve.scad>period = 6; // choose the pitchlength = 30; // the tallnessnthreads = 7; // the number of threads (<0 for left threads)f = undef; // angular finesse, undef for autocompute// A sinusoidal profile function...function prof_sin(z) = [z, 10+sin(z*360/period)];// ...which becomes a profile array with the help of linspaceprof = [for (z=linspace(start=0, stop=period, n=16)) prof_sin(z)];// A square profile array defined manually//prof = [// [0, 11], [0.01, 9], [period/2, 9], // [period/2+0.01, 11], [period, 11]//];// now the screwrender(convexity=10) revolve( prof, length=length, nthreads=nthreads, f=f);
A limited set of the module capabilities can be previewed in the Customizer.
revolve.scad | 7.6KB | |
sample.stl | 3.8MB |