discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] I want dig out from the bottom, how?

M
MichaelAtOz
Tue, Dec 20, 2016 3:46 AM

Perhaps you mean move it up? Like:

$fn=50;
r=7.5;
ra=4;
translate([0,0,10])
difference(){
union(){
cube([50,30,20],true);
translate([-25,0,0]) color("Magenta") cylinder(20,15,15,true);
translate([25,0,0]) color("Magenta") cylinder(20,15,15,true);
}
translate([15,0,ra]) color("red") cylinder(20,r,r,true);
//translate([15,0,ra]) color("red") minkowski()
{cylinder(20-2*ra,r-ra,r-ra,true); sphere(r=ra);}
translate([-15,0,10]) rotate([90,0,0])  color("gray")
cylinder(30+ra,r,r,true);
for(y=[-15:5:15]) {translate([-15,y,10])  slot();}
}

module slot(){rotate([90,0,0])  color("blue") cylinder(4,r+ra,r+ra,true);}


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/I-want-dig-out-from-the-bottom-how-tp19633p19637.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Perhaps you mean move it up? Like: $fn=50; r=7.5; ra=4; translate([0,0,10]) difference(){ union(){ cube([50,30,20],true); translate([-25,0,0]) color("Magenta") cylinder(20,15,15,true); translate([25,0,0]) color("Magenta") cylinder(20,15,15,true); } translate([15,0,ra]) color("red") cylinder(20,r,r,true); //translate([15,0,ra]) color("red") minkowski() {cylinder(20-2*ra,r-ra,r-ra,true); sphere(r=ra);} translate([-15,0,10]) rotate([90,0,0]) color("gray") cylinder(30+ra,r,r,true); for(y=[-15:5:15]) {translate([-15,y,10]) slot();} } module slot(){rotate([90,0,0]) color("blue") cylinder(4,r+ra,r+ra,true);} ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/I-want-dig-out-from-the-bottom-how-tp19633p19637.html Sent from the OpenSCAD mailing list archive at Nabble.com.
F
fred_dot_u
Tue, Dec 20, 2016 8:54 AM

I had thought from the description that the OP might want to hollow out the
underside, similar to that of the Lego brick.

--
View this message in context: http://forum.openscad.org/I-want-dig-out-from-the-bottom-how-tp19633p19638.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I had thought from the description that the OP might want to hollow out the underside, similar to that of the Lego brick. -- View this message in context: http://forum.openscad.org/I-want-dig-out-from-the-bottom-how-tp19633p19638.html Sent from the OpenSCAD mailing list archive at Nabble.com.