scad-utils icon indicating copy to clipboard operation
scad-utils copied to clipboard

r parameter in linear_extrude from morphology example

Open NigelLeeming opened this issue 4 years ago • 2 comments

Hi, I found this example from 2014 which looks like something I've been after, except there is an 'r' parameter in linear_extrude which gets thrown up as a warning as it doesn't exist. Images of the example rendered from here: http://forum.openscad.org/Experiment-with-rounded-extrusions-td7928.html and my render which has only half of the round edges. Can anyone explain where the 'r' parameter in linear_extrude might be found?

scad1 scad2

use <scad-utils/morphology.scad> eps = 0.01;

$fn=64;

module base() { union() { rounding(2) fillet(2) difference() { square([50,40]); translate([(50-25)/2,40-15]) square([25,20]); } rounding(0.25) square([50,10]); } }

difference() { linear_extrude(height=10,r=0.25,convexity=3) base();

    translate([0,0,-eps]) linear_extrude(height=10 + 2*eps,r=-1,convexity=3)
            translate([(50-30)/2,5])
                    rounding(2) square([30,15]);

    rotate([90,0,0])
            translate([5,2.5,-1])
                            linear_extrude(height=1+eps,r=[0.25,-0.25])  
                                    rounding(1) square([40,5]);

}

for (x = [6.25, 50-6.25]) translate([x, 40-6.25, 10])

            linear_extrude(height=5,r=[-.25,.25],chamfer=[0,1])
                    circle(r=2);

NigelLeeming avatar Nov 20 '20 09:11 NigelLeeming

I am looking for this too. I thought perhaps an earlier version of the morphology library might have had a replacement linear_extrude() that has since been removed or renamed, but I couldn't find any evidence of it.

richard0cs avatar Mar 14 '21 11:03 richard0cs

Looking a bit more I have realised that OskarLinde has a fork of Openscad here https://github.com/OskarLinde/openscad so that's probably where it's come from. In fact in the original post he said " with an extension to linear_extrude()".

What I've not found is exactly which branch it's in.

richard0cs avatar Mar 14 '21 12:03 richard0cs