mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-27 01:03:51 -05:00
Fixed ball bearing chamfers.
This commit is contained in:
parent
fb41f218fe
commit
3cf275579c
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 |
@ -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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user