magnet error in baseplate, slit height

This commit is contained in:
kennetek 2022-11-09 10:29:55 -07:00
parent 5b0d1a1685
commit d02bcd1bfe
3 changed files with 9 additions and 7 deletions

View file

@ -24,6 +24,8 @@ r_hole2 = 3.25;
d_hole = 26;
// magnet hole depth
h_hole = 2.4;
// slit depth (printer layer height)
h_slit = 0.2;
// top edge fillet radius
r_f1 = 0.6;

View file

@ -29,13 +29,13 @@ distancey = 0;
/* [Styles] */
// baseplate styles
style_plate = 1; // [0: thin, 1:weighted, 2:skeletonized]
style_plate = 2; // [0: thin, 1:weighted, 2:skeletonized]
// enable magnet hole
enable_magnet = true;
// hole styles
style_hole = 1; // [0:none, 1:contersink, 2:counterbore]
style_hole = 2; // [0:none, 1:contersink, 2:counterbore]
// ===== Commands ===== //
@ -122,8 +122,8 @@ module cutter_counterbore() {
difference() {
cylinder(h = 2*(h_cb+0.2), r=r_cb, center=true);
copy_mirror([0,1,0])
translate([-1.5*r_cb,r_hole1+0.1,h_cb])
cube([r_cb*3,r_cb*3, 0.4]);
translate([-1.5*r_cb,r_hole1+d_clear+0.1,h_cb-h_slit])
cube([r_cb*3,r_cb*3, 10]);
}
}
}

View file

@ -129,19 +129,19 @@ module block_base_solid(dbnx, dbny, l, o) {
}
}
module block_base_hole(style_hole, o) {
module block_base_hole(style_hole, o=0) {
r1 = r_hole1-o/2;
r2 = r_hole2-o/2;
pattern_circular(abs(d_hole)<0.001?1:4)
translate([d_hole/2, d_hole/2, 0])
union() {
difference() {
cylinder(h = 2*(h_hole-o+(style_hole==3?0.2:0)), r=r2, center=true);
cylinder(h = 2*(h_hole-o+(style_hole==3?h_slit:0)), r=r2, center=true);
if (style_hole==3)
copy_mirror([0,1,0])
translate([-1.5*r2,r1+0.1,h_hole-o])
cube([r2*3,r2*3, 0.4]);
cube([r2*3,r2*3, 10]);
}
if (style_hole > 1)
cylinder(h = 2*h_base-o, r = r1, center=true);