From 05f2845bb83a0cbac558c73e65384f38673e7b9b Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 9 Dec 2023 21:15:26 -0500 Subject: [PATCH 1/3] fix example bug --- turtle3d.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turtle3d.scad b/turtle3d.scad index bc8d559..2c74b25 100644 --- a/turtle3d.scad +++ b/turtle3d.scad @@ -368,7 +368,7 @@ function _rotpart(T) = [for(i=[0:3]) [for(j=[0:3]) j<3 || i==3 ? T[i][j] : 0]]; // ["move", seg1_len, "grow", seg1_bot_ID/seg2_bot_ID] // ], // state=UP, transforms=true); -// back_half() // Remove this to get a usable part +// back_half(s=300) // Remove this to get a usable part // sweep(circle(d=seg1_bot_OD, $fn=128), trans, closed=true); // Example(3D): Closed spiral // include From a6a164bf151366a3d11acacbb6aaeed4fcc8fd47 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sun, 10 Dec 2023 20:02:53 -0500 Subject: [PATCH 2/3] example fixes --- gears.scad | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gears.scad b/gears.scad index 1367a76..429a6f3 100644 --- a/gears.scad +++ b/gears.scad @@ -570,7 +570,7 @@ function _inherit_gear_thickness(thickness,dflt=10) = // mate at a 90 degree angle because if it did, its cone could not meet the center of the planar bevel gear. // If you request a larger shaft angle, the teeth of the bevel gear will tilt inward, producing an internal bevel gear. // Gears with this design are rarely used. The mate of an interior gear is always an exterior gear. -// Figure(VPT=[-1.07698,0.67915,-2.25898],VPD=263.435,VPR=[69.7,0,49.3],NoAxes): Internal bevel gear (yellow) mated to an external bevel gear (blue) to achieve a 135 degree shaft angle. +// Figure(Med,VPT=[-1.07698,0.67915,-2.25898],VPD=263.435,VPR=[69.7,0,49.3],NoAxes): Internal bevel gear (yellow) mated to an external bevel gear (blue) to achieve a 135 degree shaft angle. // ang=135; // bevel_gear(mod=3,35,15,ang,spiral=0,cone_backing=false); // down(15)cyl(h=40,d=3,$fn=16,anchor=BOT); @@ -3492,7 +3492,7 @@ function _gear_tooth_profile( // spur_gear2d(mod=mod, teeth=gear_data[0][1], profile_shift=gear_data[0][2], gear_spin=gear_data[0][3]); //sun // color("red")move_copies(gear_data[2][4]) // spur_gear2d(mod=mod, teeth=gear_data[2][1], profile_shift=gear_data[2][2], gear_spin=gear_data[2][3][$idx]); -// Example(2D,Med,NoAxes,Anim,Frames=45,VPT=[-0.125033,0.508151,-66.3877],VPR=[0,0,0],VPD=192.044): In this example we request a sun/carrier ratio of 3.6 and get exactly that ratio. The carrier shown as the blue pentagon moves very slowly as the central sun turns. The ring is fixed. +// Example(2D,Med,NoAxes,Anim,FrameMS=60,Frames=90,VPT=[-0.125033,0.508151,-66.3877],VPR=[0,0,0],VPD=192.044): In this example we request a sun/carrier ratio of 3.6 and get exactly that ratio. The carrier shown as the blue pentagon moves very slowly as the central sun turns. The ring is fixed. // mod=1; // gear_data = planetary_gears(mod=mod, n=5, max_teeth=70, sun_carrier=3.6, gear_spin=3.6*360/5*$t); // ring_gear2d(mod=mod, teeth=gear_data[1][1], profile_shift=gear_data[1][2], gear_spin=gear_data[1][3],backing=2); @@ -3502,13 +3502,14 @@ function _gear_tooth_profile( // color("red")move_copies(gear_data[2][4]) // spur_gear2d(mod=mod, teeth=gear_data[2][1], profile_shift=gear_data[2][2], gear_spin=gear_data[2][3][$idx]); // Example(3D,Med,NoAxes,Anim,Frames=7,FrameMS=50,VPT=[0.128673,0.24149,0.651451],VPR=[38.5,0,21],VPD=222.648): Here we request a sun/ring ratio of 3 and it is exactly achieved. The carrier, shown in blue, is fixed. This example is shown with helical gears. It is important to remember to flip the sign of the helical angle for the planet gears. +// $fn=81; // mod=1; // helical=25; // gear_data = planetary_gears(mod=mod, n=4, max_teeth=82, sun_ring=3, helical=helical,gear_spin=360/27*$t); // ring_gear(mod=mod, teeth=gear_data[1][1], profile_shift=gear_data[1][2], helical=helical, gear_spin=gear_data[1][3],backing=4,thickness=7); // color("blue"){ // move_copies(gear_data[2][4]) cyl(h=12,d=4); -// down(10)linear_extrude(height=3)scale(1.2)polygon(gear_data[2][4]); +// down(9)linear_extrude(height=3)scale(1.2)polygon(gear_data[2][4]); // } // spur_gear(mod=mod, teeth=gear_data[0][1], profile_shift=gear_data[0][2], helical=helical, gear_spin=gear_data[0][3]); //sun // color("red")move_copies(gear_data[2][4]) From 296b8e2dd2fe1ea1b37fd9a60b6a40520db6bc10 Mon Sep 17 00:00:00 2001 From: adrianVmariano Date: Mon, 11 Dec 2023 01:03:17 +0000 Subject: [PATCH 3/3] Version Bump --- version.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.scad b/version.scad index a122434..85ecc23 100644 --- a/version.scad +++ b/version.scad @@ -9,7 +9,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,662]; +BOSL_VERSION = [2,0,663]; // Section: BOSL Library Version Functions