Merge branch 'kp_pillow_block_fix' of https://github.com/martinbudden/NopSCADlib into martinbudden-kp_pillow_block_fix

This commit is contained in:
Chris Palmer 2020-02-27 11:18:54 +00:00
commit aed4a699f2
1 changed files with 7 additions and 4 deletions

View File

@ -72,13 +72,16 @@ module kp_pillow_block(type) { //! Draw the KP pillow block
for(x = [- L / 2 + squareSizeX - fillet, L / 2 - squareSizeX + fillet - 2]) for(x = [- L / 2 + squareSizeX - fillet, L / 2 - squareSizeX + fillet - 2])
translate([x, 0, 0]) translate([x, 0, 0])
cube([2, H, A]); cube([2, H, A]);
stripLength = J - 2 * bolthole_radius;
stripThickness = 4;
translate([-stripLength / 2, 0, (H1 + stripThickness) / 2])
cube([stripLength, H1, stripThickness]);
translate([0 , H, 0]) translate([0 , H, 0])
tube(H0 / 2, b / 2, A, center = false); tube(H0 / 2, b / 2, A, center = false);
} }
stripThickness = 4;
translate([-H0 / 2, 0, -stripThickness / 2])
linear_extrude(stripThickness) difference() {
square([H0, H]);
translate([H0 / 2, H])
circle(b / 2);
}
} }
not_on_bom() no_explode() not_on_bom() no_explode()