code formatting

This commit is contained in:
K Hodson 2023-02-15 10:04:34 -07:00
parent 6ad4204c10
commit 19a1504006

View file

@ -42,7 +42,7 @@ distancey = 0;
/* [Styles] */
// baseplate styles
style_plate = 3; // [0: thin, 1:weighted, 2:skeletonized, 3: screw together, 4: screw together minimal]
style_plate = 0; // [0: thin, 1:weighted, 2:skeletonized, 3: screw together, 4: screw together minimal]
// enable magnet hole
enable_magnet = true;
@ -87,15 +87,12 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) {
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) {
l = length-2*r_c2-2*r_c1;
translate([0,0,-off - 0.001])
rounded_square(l, off + 0.002, r_fo3);
}
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();