From b33f4fef06b112410ae01fe6fd92e80c347189bc Mon Sep 17 00:00:00 2001 From: Artur Kerge Date: Sat, 27 Jul 2024 12:34:50 +0300 Subject: [PATCH] Add uniform spacing, deepen sign slot --- 2024/hackathon2024trophy-inscription.scad | 10 +-- 2024/hackathon2024trophy.scad | 81 +++++++++++------------ 2 files changed, 45 insertions(+), 46 deletions(-) diff --git a/2024/hackathon2024trophy-inscription.scad b/2024/hackathon2024trophy-inscription.scad index 95caefd..f2e3289 100644 --- a/2024/hackathon2024trophy-inscription.scad +++ b/2024/hackathon2024trophy-inscription.scad @@ -1,9 +1,9 @@ /** - Sign for the trophy. - - Don't forget to scale if want other dimensions. - - Author: Artur Kerge + Sign for the trophy. + + Don't forget to scale if want other dimensions. + + Author: Artur Kerge **/ //s=1; diff --git a/2024/hackathon2024trophy.scad b/2024/hackathon2024trophy.scad index b9b6bfd..850f3bc 100644 --- a/2024/hackathon2024trophy.scad +++ b/2024/hackathon2024trophy.scad @@ -1,15 +1,15 @@ /** - Trophy cutting lines. - - t=plywood thickness - w=width of the trophy - - If you need to scale the trophy up or down, - uncomment the "scale" and "s" below to set the scaling factor. - - Assuming 1 unit in OpenSCAD corresponds to 1mm. - - Author: Artur Kerge + Trophy cutting lines. + + t=plywood thickness + w=width of the trophy + + If you need to scale the trophy up or down, + uncomment the "scale" and "s" below to set the scaling factor. + + Assuming 1 unit in OpenSCAD corresponds to 1mm. + + Author: Artur Kerge **/ w=80; @@ -19,42 +19,41 @@ t=6; //scale([s,s,0]) module base() { - polygon( - // points go clockwise from bottom left of the base - points=[ - [0,0],[0,t],[8,7],[17.5,10],[25,15],[28,20],[30.5,30],[31.5,40],[32,50],[32,61],[40,61],[40,0] - ] - ); + polygon( + // points go clockwise from bottom left of the base + points=[ + [0,0],[0,t],[8,7],[17.5,10],[25,15],[28,20],[30.5,30],[31.5,40],[32,50],[32,61],[40,61],[40,0] + ] + ); }; module beaker(){ + union() { + // want to make the beaker lower? decrese y in translate below + translate([0,60,0]) union(){ + // cutout for the sign + difference() { + square(w); + translate([0,w/4.5,0]) color("red") square([t,42]); + } + // resizes the beaker bottom circle to an ellips + translate([w/2,0,0]) resize([w,30]) circle(d=w,false); + }; + + // beaker base union() { - // beaker - // want to beaker? lower the y in translate - translate([0,70,0]) union(){ - difference() { - square(w); - translate([0,w/4.5,0]) color("red") square([2,42]); - } - translate([w/2,0,0]) - // resizes the circle to an ellips - resize([w,30]) circle(d=w,false); - }; - - // beaker base - union() { - base(); - translate([2*40,0,0]) mirror([1,0,0]) base(); - } + base(); + translate([2*40,0,0]) mirror([1,0,0]) base(); } + } +} +// vertical cutouts for the trophy +difference(){ + beaker(); + translate([w/2-t/2,0,0]) color("green") square([t,75]); } difference(){ - beaker(); - translate([w/2-t/2,0,0]) color("green") square([t,75]); -} - -difference(){ - translate([2*w+5,0,0]) mirror([1,0,0]) beaker(); - translate([w+5+w/2-t/2,150/2,0]) color("red") square([t,75]); + translate([2*w+5,0,0]) mirror([1,0,0]) beaker(); + translate([w+5+w/2-t/2,150/2,0]) color("red") square([t,75]); } \ No newline at end of file