mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2025-01-03 12:39:34 +00:00
fix dynamic hole location on grid length
This commit is contained in:
parent
ce9132f41c
commit
3b90df14f5
2 changed files with 5 additions and 3 deletions
|
@ -21,7 +21,9 @@ r_hole1 = 1.5;
|
|||
// magnet hole radius
|
||||
r_hole2 = 3.25;
|
||||
// center-to-center distance between holes
|
||||
d_hole = 26;
|
||||
d_hole = 26;
|
||||
// distance of hole from side of bin
|
||||
d_hole_from_side=8;
|
||||
// magnet hole depth
|
||||
h_hole = 2.4;
|
||||
// slit depth (printer layer height)
|
||||
|
|
|
@ -112,8 +112,8 @@ module block_base(gx, gy, l, dbnx, dbny, style_hole, off) {
|
|||
pattern_linear(2, 2, (gx-1)*length+d_hole, (gy-1)*length+d_hole)
|
||||
block_base_hole(style_hole / p_corn, off);
|
||||
else
|
||||
pattern_circular(abs(d_hole)<0.001?1:4)
|
||||
translate([d_hole/2, d_hole/2, 0])
|
||||
pattern_circular(abs(l-d_hole_from_side/2)<0.001?1:4)
|
||||
translate([l/2-d_hole_from_side, l/2-d_hole_from_side, 0])
|
||||
block_base_hole(style_hole, off);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue