Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r parameter in linear_extrude from morphology example #13

Open
NigelLeeming opened this issue Nov 20, 2020 · 2 comments
Open

r parameter in linear_extrude from morphology example #13

NigelLeeming opened this issue Nov 20, 2020 · 2 comments

Comments

@NigelLeeming
Copy link

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);
@richard0cs
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants