diff --git a/involute_gears.scad b/involute_gears.scad index a69d8a9..55fdc10 100644 --- a/involute_gears.scad +++ b/involute_gears.scad @@ -278,7 +278,7 @@ function gear2d( ], hide>0? [[0,0]] : [] ) -) attachable(anchor,spin, two_d=true, r=pr, p=pts); +) reorient(anchor,spin, two_d=true, r=pr, p=pts); module gear2d( @@ -301,6 +301,7 @@ module gear2d( backlash = backlash, interior = interior ); + pr = pitch_radius(pitch=pitch, teeth=teeth); attachable(anchor,spin, two_d=true, r=pr) { polygon(path); children(); diff --git a/version.scad b/version.scad index 5b980b2..4705c4b 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,240]; +BOSL_VERSION = [2,0,241]; // Section: BOSL Library Version Functions