Fixed ball bearing chamfers.

This commit is contained in:
Chris Palmer 2020-07-31 01:33:33 +01:00
parent fb41f218fe
commit 3cf275579c
3 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 85 KiB

View File

@ -52,21 +52,21 @@ module ball_bearing(type) { //! Draw a ball bearing
rim_chamfer = rim / 6; rim_chamfer = rim / 6;
rotate_extrude() rotate_extrude()
hull() { hull() {
translate([or - rim / 2, 0]) translate([or - rim, -h / 2 + rim_chamfer])
square([rim, h - 2 * rim_chamfer], center = true); square([rim, h - 2 * rim_chamfer]);
translate([or - rim / 2 - rim_chamfer, 0]) translate([or - rim, -h / 2])
square([rim - rim_chamfer, h], center = true); square([rim - rim_chamfer, h]);
} }
hub_chamfer = hub / 6; hub_chamfer = hub / 6;
rotate_extrude() rotate_extrude()
hull() { hull() {
translate([ir + hub / 2, 0]) translate([ir, -h / 2 + hub_chamfer])
square([hub, h - 2 * hub_chamfer], center = true); square([hub, h - 2 * hub_chamfer]);
translate([ir + hub / 2 + hub_chamfer, 0]) translate([ir + hub_chamfer, -h / 2])
square([hub - hub_chamfer, h], center = true); square([hub - hub_chamfer, h]);
} }
} }