This commit is contained in:
Sébastien Dante Ursini 2025-01-15 15:46:57 -03:00
parent e180588583
commit a216fb2dd6

View File

@ -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);
}