cleanup
authorTomas Mudrunka <tomas.mudrunka@gmail.com>
Mon, 10 Feb 2025 21:52:25 +0000 (22:52 +0100)
committerTomas Mudrunka <tomas.mudrunka@gmail.com>
Mon, 10 Feb 2025 21:52:25 +0000 (22:52 +0100)
openscad/planter_modular_b.scad

index 471ed62580b391a03ad634263b198516c22fcfc7..2584519d5efa5bde7bae9f3f710e9954b2fdcade 100644 (file)
@@ -11,7 +11,7 @@ module cavity(hole=0) {
        difference() {
                union() {
                        translate([0,0,1]) cylinder(d2=17, d1=13, h=14); //pothole
-                       translate([0,17.3/2*hole,1]) rotate([0,0,45]) cylinder(d2=12, d1=9.2, h=14, $fn=4); //pothole-join
+                       translate([0,6*hole,1]) rotate([0,0,45]) cylinder(d2=12, d1=9.2, h=14, $fn=4); //pothole-join
                }
                translate([-3,0,-2]) scale([1,0.9,1.3]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=5, d2=38, h=15); //balcony clearance
        }
@@ -21,19 +21,19 @@ module cavity(hole=0) {
 module planter(hole=0, hollow=1) {
 difference() {
 
-       if(hollow != -1) union() {
+       union() {
                cylinder(d2=20, d1=20, h=15); //main hexagon
                translate([0,0,-1]) cylinder(d2=17, d1=16.5, h=1); //index
        }
-       if(hollow != -1) translate([-3,0,-2]) scale([1,0.9,1.22]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=1, d2=34, h=15); //balcony
+       translate([-3,0,-2]) scale([1,0.9,1.22]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=1, d2=34, h=15); //balcony
 
        if(hollow != 0) cavity(hole);
 }
 }
 
 module double(ho=1) {
-       translate([0,0,0]) planter(1, hollow=ho);
-       translate([0,17.3,0]) planter(-1, hollow=ho);
+       translate([0,0,0])              if(ho==-1) cavity( 1); else planter( 1, hollow=ho);
+       translate([0,17.3,0])   if(ho==-1) cavity(-1); else planter(-1, hollow=ho);
 }
 
 //!planter();
@@ -53,4 +53,5 @@ scale(5) {
                double(ho=1);
        }
        translate([20,0,0]) double(ho=-1);
+        
 }
This page took 0.12539 seconds and 4 git commands to generate.