Bugfix for involute gears #148

This commit is contained in:
Revar Desmera 2020-03-29 20:56:42 -07:00
parent a98bc00838
commit 0a741b36d1
2 changed files with 3 additions and 2 deletions

View File

@ -278,7 +278,7 @@ function gear2d(
], ],
hide>0? [[0,0]] : [] 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( module gear2d(
@ -301,6 +301,7 @@ module gear2d(
backlash = backlash, backlash = backlash,
interior = interior interior = interior
); );
pr = pitch_radius(pitch=pitch, teeth=teeth);
attachable(anchor,spin, two_d=true, r=pr) { attachable(anchor,spin, two_d=true, r=pr) {
polygon(path); polygon(path);
children(); children();

View File

@ -8,7 +8,7 @@
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,240]; BOSL_VERSION = [2,0,241];
// Section: BOSL Library Version Functions // Section: BOSL Library Version Functions