mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2024-11-22 00:10:49 +00:00
Merge pull request #48 from Ruudjhuu/feature/screw_together_minimal
Feature/screw together minimal
This commit is contained in:
commit
80540b3ab6
1 changed files with 6 additions and 4 deletions
|
@ -48,7 +48,7 @@ fity = 0; // [-1:0.1:1]
|
|||
/* [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 = true;
|
||||
|
@ -95,17 +95,19 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh, fitx, fit
|
|||
if (sp == 1)
|
||||
translate([0,0,-off])
|
||||
cutter_weight();
|
||||
else if (sp == 2 || sp == 3) {
|
||||
else if (sp == 2 || sp == 3)
|
||||
linear_extrude(10*(h_base+off), center = true)
|
||||
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]) {
|
||||
if (sh == 1) cutter_countersink();
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue