Skip to content

Instantly share code, notes, and snippets.

@Uko
Created January 24, 2020 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Uko/61c499e8422eb2b17d954c656b8469d1 to your computer and use it in GitHub Desktop.
Save Uko/61c499e8422eb2b17d954c656b8469d1 to your computer and use it in GitHub Desktop.
top_d = 107;
wider_ridge_d = 100;
narrower_ridge_d = 92;
bottom_d = 78;
top_h = 18;
h = 80;
module plant() {
translate([0,0, h-top_h])
cylinder(d1=wider_ridge_d, d2=top_d, h = top_h, $fn=120);
cylinder(d1=bottom_d, d2=narrower_ridge_d, h = h-top_h, $fn=120);
}
wall = 2.54;
module pot() {
rotate_extrude($fn=160) {
difference() {
// outer circle
translate([wall, 58, 0])
scale([1, 1.4, 1])
circle(d = top_d * 1.08, $fn=160);
// inner circle w/o bottom
difference() {
translate([0, 58,0 ])
scale([1, 1.4, 1])
circle(d = top_d * 1.08, $fn=160);
translate([0, -200])
square(200);
}
// cutaway the top
translate([-100, h+1])
square(200);
// cutaway the bottom
translate([-100, -200-3])
square(200);
}
// have a rounded top
translate([55.385+wall/2, h+1])
scale([1,3/4])
circle(d=wall, $fn=60);
}
}
%color("blue")
projection(cut = true)
rotate([-90, 0, 0]) plant();
%color("red")
projection(cut = true)
rotate([-90, 0, 0]) pot();
color("yellow", 0.5)
pot();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment