Merge pull request #48 from Ruudjhuu/feature/screw_together_minimal

Feature/screw together minimal
This commit is contained in:
Kenneth 2023-02-15 10:05:30 -07:00 committed by GitHub
commit 80540b3ab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ fity = 0; // [-1:0.1:1]
/* [Styles] */ /* [Styles] */
// baseplate styles // baseplate styles
style_plate = 3; // [0: thin, 1:weighted, 2:skeletonized, 3: screw together] style_plate = 0; // [0: thin, 1:weighted, 2:skeletonized, 3: screw together, 4: screw together minimal]
// enable magnet hole // enable magnet hole
enable_magnet = true; enable_magnet = true;
@ -95,17 +95,19 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh, fitx, fit
if (sp == 1) if (sp == 1)
translate([0,0,-off]) translate([0,0,-off])
cutter_weight(); cutter_weight();
else if (sp == 2 || sp == 3) { else if (sp == 2 || sp == 3)
linear_extrude(10*(h_base+off), center = true) linear_extrude(10*(h_base+off), center = true)
profile_skeleton(); profile_skeleton();
} else if (sp == 4)
translate([0,0,-5*(h_base+off)])
rounded_square(length-2*r_c2-2*r_c1, 10*(h_base+off), r_fo3);
translate([0,0,-off]) { translate([0,0,-off]) {
if (sh == 1) cutter_countersink(); if (sh == 1) cutter_countersink();
else if (sh == 2) cutter_counterbore(); else if (sh == 2) cutter_counterbore();
} }
} }
if (sp == 3) cutter_screw_together(gx, gy, off); if (sp == 3 || sp ==4) cutter_screw_together(gx, gy, off);
} }
} }