diff --git a/pudelko.scad b/pudelko.scad index 59360e5..56c3d99 100644 --- a/pudelko.scad +++ b/pudelko.scad @@ -35,38 +35,43 @@ dlpattern = 130; // BOX -/* diff() */ -/* cuboid([dlugosc + 4, szerokosc + 4, wysokosc], rounding = zaokraglenie, edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], anchor = CENTER + BOTTOM) { */ -/* up(2) */ -/* tag("remove") */ -/* cuboid([dlugosc , szerokosc , wysokosc], rounding = zaokraglenie, edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], anchor = CENTER); */ +diff(keep="pudeleczko") + cuboid([dlugosc + 4, szerokosc + 4, wysokosc], rounding = zaokraglenie, edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], anchor = CENTER + BOTTOM) { + up(2) + tag("remove") + cuboid([dlugosc , szerokosc , wysokosc], rounding = zaokraglenie, edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], anchor = CENTER); +position(BACK+LEFT) tag("pudeleczko") +diff() +cuboid([dlkoszyczek + 4.,szerkoszyczek + 4,wyskoszyczek],rounding=5, edges=[LEFT+BACK],anchor=(BACK+LEFT)){ +up(2) + tag("remove")cuboid([dlkoszyczek,szerkoszyczek,wyskoszyczek],rounding=5, edges=[LEFT+BACK]); +} -/* } */ + } + +/* diff(keep="szescian") */ +/* // 1. Obiekt Pozytywny (Główne Pudełko) */ +/* cuboid([dlugosc + 4, szerokosc + 4, wysokosc], */ +/* rounding = zaokraglenie, */ +/* edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], */ +/* anchor = CENTER + BOTTOM) { */ + +/* // 2. Obiekt Negatywny (Wydrążenie pudełka) */ +/* // Domyślny diff() szuka "remove" */ +/* up(2) */ +/* tag("remove") */ +/* cuboid([dlugosc, szerokosc, wysokosc], */ +/* rounding = zaokraglenie, */ +/* edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], */ +/* anchor = CENTER); */ -diff(keep="szescian") -// 1. Obiekt Pozytywny (Główne Pudełko) - cuboid([dlugosc + 4, szerokosc + 4, wysokosc], - rounding = zaokraglenie, - edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], - anchor = CENTER + BOTTOM) { - - // 2. Obiekt Negatywny (Wydrążenie pudełka) - // Domyślny diff() szuka "remove" - up(2) - tag("remove") - cuboid([dlugosc, szerokosc, wysokosc], - rounding = zaokraglenie, - edges = [FRONT+RIGHT, FRONT+LEFT, BACK+LEFT, BACK+RIGHT], - anchor = CENTER); - - -tag("szescian") -diff("dziura_w_szescianie") - cuboid([20,20,20]){ - tag("dziura_w_szescianie")position(TOP) cyl(20, anchor=TOP); - } - } +/* tag("szescian") */ +/* diff("dziura_w_szescianie") */ +/* cuboid([20,20,20]){ */ +/* tag("dziura_w_szescianie")position(TOP) cyl(20, anchor=TOP); */ +/* } */ +/* } */