From d8ffc20d390129b5e6ef2ab5478efd43926c1fda Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Wed, 12 Feb 2025 01:40:56 +0100 Subject: [PATCH] Obnoven kod pro generovani formy --- openscad/planter_modular_c.scad | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/openscad/planter_modular_c.scad b/openscad/planter_modular_c.scad index 1c50735..09d7b6d 100644 --- a/openscad/planter_modular_c.scad +++ b/openscad/planter_modular_c.scad @@ -4,7 +4,6 @@ include $fn=6; /* TODO - - zaoblit hrany - sroubovatelna forma - musi ji vyndat z formy - diry na zavlahu? @@ -48,7 +47,7 @@ module planter2(hollow=1, n=1, pitch=17.3, d1=20) { difference() { union() { translate([0,0,7.5]) rounded_prism(top, height=15, joint_top=0.5, joint_bot=0.5, joint_sides=0.5, splinesteps=$fn, anchor="origin"); //main hexagon - for(i = [0 : 1 : n]) translate([0,i*pitch,-1]) rounded_prism(hexagon(d=16.5), hexagon(d=17), height=1, joint_top=-0.5, joint_bot=0.5, joint_sides=1, splinesteps=$fn, anchor="bot"); //index + for(i = [0 : 1 : n]) translate([0,i*pitch,-1]) rounded_prism(hexagon(d=16.5), hexagon(d=17), height=1, joint_top=-0.5, joint_bot=0, joint_sides=1, splinesteps=$fn, anchor="bot"); //index } if(hollow != 0) cavity2(n, pitch); for(i = [0 : 1 : n]) translate([-3,i*pitch,-2]) scale([1,0.9,1.22]) rotate([0,90,0]) rotate([0,0,30]) cylinder(d1=1, d2=34, h=15); //balcony @@ -60,27 +59,23 @@ module double(ho=1) { translate([0,17.3,0]) if(ho==-1) cavity(-1); else planter(-1, hollow=ho); } -//%cavity(); //cavity2(); -//planter2(n=5); -//!double() +//planter2(n=1); +//for(i = [0:1:2]) translate([0,0,i*15.1]) planter2(n=3-i); -for(i = [0:1:2]) translate([0,0,i*15.1]) planter2(n=3-i); -/* scale(5) { difference() { //translate([-11,-10,-1]) cube([22,37,16]); translate([0,0,0]) minkowski() { cube([2,6,0.0000000001], center=true); - hull() double(); + hull() planter2(n=1); } - double(ho=0); + planter2(hollow=0, n=1); translate([-4,0,0]) cube([0.01,100,50], center=true); //split mold } - translate([20,0,0]) double(ho=-1); + translate([20,0,0]) cavity2(n=1); } -*/ -- 2.30.2