From f916c2ff3411a808b603e7fb4cc574d95c47be53 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Sun, 9 Feb 2025 01:13:27 +0100 Subject: [PATCH] double planter --- openscad/planter_modular_b.scad | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/openscad/planter_modular_b.scad b/openscad/planter_modular_b.scad index 5ea9bce..c2b604d 100644 --- a/openscad/planter_modular_b.scad +++ b/openscad/planter_modular_b.scad @@ -1,19 +1,31 @@ -module planter() { +module planter(hole=0) { difference() { intersection() { - cylinder(d2=20, d1=20, h=12, $fn=6); + union() { + cylinder(d2=20, d1=20, h=16, $fn=6); + translate([0,0,-1]) cylinder(d2=16, d1=14, h=1, $fn=6); //index + } union() { difference() { - cylinder(d2=20, d1=20, h=12, $fn=6); - translate([0,0,2]) cylinder(d2=16, d1=16, h=12, $fn=6); + cylinder(d2=20, d1=20, h=16, $fn=6); + translate([0,0,2]) cylinder(d2=17, d1=13, h=16, $fn=6); //pothole + translate([0,17.3/2*hole,2]) rotate([0,0,45]) cylinder(d2=12, d1=9.2, h=16, $fn=4); //pothole2 } - translate([0,0,-1]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=5, d2=30, h=10, $fn=6); + translate([-2,0,-2]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=5, d2=38, h=12, $fn=6); //balcony + translate([0,0,-1]) cylinder(d2=16, d1=16, h=1, $fn=6); //index } } - translate([0,0,-1]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=1, d2=26, h=10, $fn=6); + translate([-2,0,-2]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=1, d2=34, h=12, $fn=6); //balcony } + } -!translate([0,0,0]) planter(); -translate([0,0,12]) planter(); -translate([0,17.3,0]) planter(); \ No newline at end of file +module double() { + translate([0,0,0]) planter(1); + translate([0,17.3,0]) planter(-1); +} + + +//translate([0,0,16]) planter(); +translate([0,-20,0]) planter(); +double(); -- 2.30.2