Fixed screw hole position of inverted printed_pulley.

Unexploded assembly view shows round screw holes to represent the tapped state.
This commit is contained in:
Chris Palmer 2021-01-10 21:28:31 +00:00
parent 4cca9d5285
commit 6bd4638e7d
2 changed files with 13 additions and 9 deletions

View File

@ -116,7 +116,10 @@ module printed_pulley(type) { //! Draw a printable pulley
translate_z(screw_z)
for(i = [0 : pulley_screws(type) - 1])
rotate([-90, 180, i * -90])
if(show_supports())
teardrop(r = screw_pilot_hole(pulley_screw(type)), h = pulley_flange_dia(type) / 2 + 1, center = false);
else
cylinder(r = screw_radius(pulley_screw(type)), h = pulley_flange_dia(type) / 2 + 1);
}
module hub()
@ -131,7 +134,8 @@ module printed_pulley(type) { //! Draw a printable pulley
if(hl)
translate_z(printed_pulley_inverted(type) ? hl + w + 2 * ft : 0)
if(screw_z && screw_z < hl)
render() difference() {
render()
difference() {
hub();
screw_holes();
@ -167,7 +171,7 @@ module printed_pulley(type) { //! Draw a printable pulley
difference() { // T5 pulleys have screws through the teeth
core();
translate_z(printed_pulley_inverted(type) ? hl : 0)
translate_z(printed_pulley_inverted(type) ? pulley_height(type) + hl - 2 * screw_z : 0)
screw_holes();
}
else

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 116 KiB