From 87f13cc5ff4ef31ef34bf76cc151c38e1203d3e1 Mon Sep 17 00:00:00 2001 From: Arne Durr Date: Sat, 6 Dec 2014 12:20:51 +0100 Subject: [PATCH] Update for Z carriage rendering Small update for the z carriage motor gear --- Hardware/CYCLONE_2/Source_files/libs/gears.scad | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Hardware/CYCLONE_2/Source_files/libs/gears.scad b/Hardware/CYCLONE_2/Source_files/libs/gears.scad index b3fa0e4..6f71831 100644 --- a/Hardware/CYCLONE_2/Source_files/libs/gears.scad +++ b/Hardware/CYCLONE_2/Source_files/libs/gears.scad @@ -63,11 +63,13 @@ module herringbone_gear( teeth=12, circles=0, shaft=5 ) { circles=circles, twist=twist/teeth ); - mirror([0,0,1]) translate([0,0,-height/2-0.01]) { - difference() { - cylinder(r=diam/2, h=truncation_height); - translate([0,0,-0.01]) - cylinder(r1=diam/2-truncation_length, r2=diam/2+1, h=truncation_height+0.02); + if (teeth>=10) { + mirror([0,0,1]) translate([0,0,-height/2-0.01]) { + difference() { + cylinder(r=diam/2, h=truncation_height); + translate([0,0,-0.01]) + cylinder(r1=diam/2-truncation_length, r2=diam/2+1, h=truncation_height+0.02); + } } } }