Added parameter to control bottom layer thickness
This commit is contained in:
K Hodson 2023-02-15 09:04:27 -07:00
parent 47ca12d8a8
commit ba3c3e1554

View file

@ -48,6 +48,8 @@ style_hole = 0; // [0:no holes, 1:magnet holes only, 2: magnet and screw holes -
div_base_x = 0; div_base_x = 0;
// number of divisions per 1 unit of base along the Y axis. (default 1, only use integers. 0 means automatically guess the right division) // number of divisions per 1 unit of base along the Y axis. (default 1, only use integers. 0 means automatically guess the right division)
div_base_y = 0; div_base_y = 0;
// thickness of bottom layer
bottom_layer = 1;
// ===== IMPLEMENTATION ===== // // ===== IMPLEMENTATION ===== //
@ -79,6 +81,8 @@ module gridfinityLite(gridx, gridy, gridz, gridz_define, style_lip, enable_zsnap
} }
translate([0,0,-1]) translate([0,0,-1])
rounded_rectangle(gridx*length-0.5005-d_wall*2, gridy*length-0.5005-d_wall*2, 1000, r_f2); rounded_rectangle(gridx*length-0.5005-d_wall*2, gridy*length-0.5005-d_wall*2, 1000, r_f2);
translate([0,0,bottom_layer])
rounded_rectangle(gridx*1000, gridy*1000, 1000, r_f2);
} }
translate([0,0,h_base+d_clear]) translate([0,0,h_base+d_clear])
rounded_rectangle(gridx*length-0.5005-d_wall*2, gridy*length-0.5005-d_wall*2, h_base, r_f2); rounded_rectangle(gridx*length-0.5005-d_wall*2, gridy*length-0.5005-d_wall*2, h_base, r_f2);