Thingiverse

custom_extrude for openscad by bda
by Thingiverse
Last crawled date: 4 years, 2 months ago
module polygon_custom_extrude(points, height, layer=0.1)
for non-linear extrude for polygon.
example functions for scaling and rotating in polygon_custom_extrude:
function fscale(z) = 1+0.5sin(1801.82z); // sinus
//function fscale(z) = 2(1-pow(z,2)); // parabola
function ftwist(z) = sin(1803z)30z; // sinus
//function ftwist(z) = 60*z; // linear
//function ftwist(z) = 0; // no twist
for non-linear extrude for polygon.
example functions for scaling and rotating in polygon_custom_extrude:
function fscale(z) = 1+0.5sin(1801.82z); // sinus
//function fscale(z) = 2(1-pow(z,2)); // parabola
function ftwist(z) = sin(1803z)30z; // sinus
//function ftwist(z) = 60*z; // linear
//function ftwist(z) = 0; // no twist