Ensure that no 3d objects show up in gear(..., flat=true)

This commit is contained in:
Chow Loong Jin 2019-07-23 22:36:02 +08:00
parent 8db030f4ca
commit b73db09ee5

View file

@ -370,7 +370,7 @@ module gear (
half_thick_angle = half_thick_angle,
involute_facets=involute_facets);
if (gear_thickness < rim_thickness)
if (flat == false && gear_thickness < rim_thickness)
translate ([0,0,gear_thickness])
cylinder (r=rim_radius,h=rim_thickness-gear_thickness+1);
}