From 6474be3183b89a29c6b2402ce8b0a3fc07336350 Mon Sep 17 00:00:00 2001 From: gizmoplex Date: Sat, 5 Dec 2015 17:53:29 -0500 Subject: [PATCH] Change gear module to use 'undef' as default value for circular_pitch and diametral_pitch parameters. This seems to make more sense than using 'false'. --- involute_gears.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/involute_gears.scad b/involute_gears.scad index 8be332f..2b98168 100644 --- a/involute_gears.scad +++ b/involute_gears.scad @@ -295,7 +295,7 @@ module involute_bevel_gear_tooth ( module gear ( number_of_teeth=15, - circular_pitch=false, diametral_pitch=false, + circular_pitch=undef, diametral_pitch=undef, pressure_angle=28, clearance = false, gear_thickness=5, @@ -315,7 +315,7 @@ module gear ( echo("MCAD ERROR: gear module needs either a diametral_pitch or circular_pitch"); //Convert diametrial pitch to our native circular pitch - circular_pitch = (circular_pitch!=false?circular_pitch:pi/diametral_pitch); + circular_pitch = (circular_pitch!=undef?circular_pitch:pi/diametral_pitch); // Calculate default clearance if not specified clearance = (clearance!=false?clearance:0.25 * circular_pitch / pi);