From a216fb2dd6879be770b1b1e69420e37fe2328881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dante=20Ursini?= Date: Wed, 15 Jan 2025 15:46:57 -0300 Subject: [PATCH] Chamfers --- Kitesurf-Fins.scad | 45 ++++++++------------------------------------- 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/Kitesurf-Fins.scad b/Kitesurf-Fins.scad index 1da794c..caa3eb4 100644 --- a/Kitesurf-Fins.scad +++ b/Kitesurf-Fins.scad @@ -236,41 +236,9 @@ if (build_fin) { scale([scale_factor, scale_factor, scale_factor]) buildFin(); } -// ***************** -// * Mold * -// ***************** -/* -if (build_mold) { - back(mold_width/2-mold_extra_width-5) - // Bottom mold - - diff() cuboid( [ mold_length, mold_width, mold_height ],anchor=TOP ) { - // Bottom Insert - align(TOP,overlap=-OFFSET,inside=true) bottomInsert(); - - // Drills - align(BOTTOM,[FRONT+LEFT,FRONT+RIGHT,BACK+LEFT,BACK+RIGHT],inset=10,overlap=-OFFSET) - color("orange") tag("remove") drilling(); - - // Top Mold - - if (mold_part != "bottom") align(TOP) - //color("Goldenrod") - //color([255, 215, 0,0.1]) - up(OFFSET*3) - diff() { - color("Orange") cuboid([ mold_length, mold_width, mold_piston_height ]); - position(TOP) down(OFFSET) tag("remove") resin_escape(); - } - } - ; - -} -*/ if (build_mold) { buildMold(); - } /** @@ -280,21 +248,24 @@ if (build_mold) { module buildMold() { // Bottom mold difference() { - case(mold_base_height); + case(mold_base_height,true); // Piston down(piston_depth-OFFSET) fwd(20) bottomInsert(); } // Top Mold up(printable ? 0 : 60) fwd(printable ? fin_height+50 : 0) down(mold_base_height) mirror([0,0,printable ? 1 : 0 ]) { - case(mold_top_height); + case(mold_top_height,false); // Piston down(mold_top_height+piston_depth-OFFSET) fwd(20) topPiston(); } } -module case(height) { - diff() cuboid( [ mold_length, mold_width, height ],anchor=TOP ){ +module case(height,bottom=true) { + diff() cuboid( [ mold_length, mold_width, height ], + rounding=4, + edges=[bottom ? BOTTOM: TOP], + anchor=TOP ){ // Drills align(BOTTOM,[FRONT+LEFT,FRONT+RIGHT,BACK+LEFT,BACK+RIGHT],inset=10,overlap=-OFFSET) color("orange") @@ -328,7 +299,7 @@ module topPiston() { debug=true; layer_profile = profile_path; difference() { - %skin( [ layer_profile,expandPath(layer_profile,3) ], z=[0,piston_depth], slices=0 ); + skin( [ layer_profile,expandPath(layer_profile,3) ], z=[0,piston_depth], slices=0 ); down(OFFSET) buildFinSide(false); }