include module bolt_tolerance_test() { steps = 3; step_width = 0.1; height = 3; for(i = [-steps : steps]) { tol = bolt_ds_tol + i * step_width; echo(tol=tol); translate([i*5*bolt_ds,0,0]) difference() { cube([5*bolt_ds, 5*bolt_ds, height]); translate([2.5*bolt_ds,2.5*bolt_ds,0]) { cylinder(d=bolt_ds+tol,h=height,$fn=50); } } } } bolt_tolerance_test();