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] */ /* [Styles] */
// baseplate 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 hole
enable_magnet = true; enable_magnet = true;
@ -87,15 +87,12 @@ module gridfinityBaseplate(gridx, gridy, length, dix, diy, sp, sm, sh) {
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)
else if (sp == 4) { translate([0,0,-5*(h_base+off)])
l = length-2*r_c2-2*r_c1; rounded_square(length-2*r_c2-2*r_c1, 10*(h_base+off), r_fo3);
translate([0,0,-off - 0.001])
rounded_square(l, off + 0.002, r_fo3);
}
translate([0,0,-off]) { translate([0,0,-off]) {
if (sh == 1) cutter_countersink(); if (sh == 1) cutter_countersink();