Commit graph

24 commits

Author SHA1 Message Date
skeptonomicon 6f0ca2a57e enabled circles and spokes on same gear, added option for entered hub and centered gear body, fixed additional test cases, improved test_gears to check more features 2021-07-20 22:48:37 -04:00
skeptonomicon 28fbdac168 fixed rack, fixed test_gears, and added spoked gears 2021-07-19 08:48:24 -04:00
Michael Diamond f957022442 Swap deprecated assign() calls for let(); https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Conditional_and_Iterator_Functions#Assign_Statement 2021-05-15 12:00:11 -07:00
Dyana Wu 9156d95f48 Merge PR #29 from gizmoplex/master into master 2020-10-09 12:51:27 +08:00
Chow Loong Jin 9fd97fa52d Merge pull request #72 from rodrigorc/master
This PR adds a rack() module to the involute_gears() module. It is basically a
section of the rim of a gear of infinite teeth.

It has a subset or the gear() arguments:

 - number_of_teeth: will affect the length of the rack.
   circular_pitch or diametral_pitch: must match that of the gear.
 - pressure_angle: must match that of the gear.
 - rim_thickness: there is no disk or hub so this is the only thickness.
 - rim_width: width of the flat ribbon behind the teeth.
 - clearance
 - flat

The other ones do not make much sense for a rack.

A rack and a gear will match if they have the same pitch and pressure angle. The
origin point or a rack is set to the middle point of the "pitch line", so to
align it with a gear, just move it to the pitch circle of the gear.

I've added a small rack to the test_gears() module, but feel free to change of
remove it if it is not appropriate.
2020-03-29 23:18:54 +08:00
Rodrigo Rivas Costa f6f4fd5d8d Add rack() module to involute_gears. 2020-03-26 11:47:29 +01:00
Doug Hawkins 60aa3794d2 Fixed module typo: linear_exturde_flat_option() 2020-03-25 21:35:15 -06:00
Doug Hawkins 87d5815003 Update libraries to fix deprecated child() & assign() calls. 2020-03-25 21:19:37 -06:00
Chow Loong Jin b73db09ee5 Ensure that no 3d objects show up in gear(..., flat=true) 2019-07-23 22:36:02 +08:00
gizmoplex 2a126e526a In the gear module, set rim_thickness, rim_width, hub_thickness, hub_diameter, and bore_diameter default values to undef and
then added code to calculate default values based on a percentage of the root circle radius.  This helps generate a valid
gear when the only parameter specified is the pitch (diametral or circular).
2015-12-05 18:57:18 -05:00
gizmoplex 2d1a97c307 In gear module, change default for clearance to 'undef'. 2015-12-05 17:57:25 -05:00
gizmoplex 6474be3183 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'.
2015-12-05 17:53:29 -05:00
gizmoplex 526aa67e1c Renamed linear_exturde_flat_option module to linear_extrude_flat_option (corrected spelling of 'extrude'). 2015-12-05 17:21:31 -05:00
gizmoplex 68bde2d7d7 Updated gear module to calculate the default clearance as .25/diametral_pitch (.25 * circular_pitch / PI). 2015-12-05 14:09:32 -05:00
gizmoplex f918e6d8c4 Updated linear_extrude_flat_option to used children() instead of the depracated child() module. 2015-12-05 13:45:14 -05:00
gizmoplex a5fb4d884b Updated gear module to correct calculations for circular_pitch and diametral_pitch. 2015-12-05 13:41:25 -05:00
gizmoplex 73909f3a0f Updated gear module to correctly display error message when neither circular_pitch or diametral_pitch parameters are
specified.  Previous method of testing for false value did not work because circular_pitch is reassigned and becomes undef
when diametral_pitch is false.
2015-12-05 13:30:33 -05:00
Marius Kintel f32906ae90 Fixed orientation issue 2011-12-30 14:29:04 +01:00
Timothy Schmidt 9c1d8c4ce8 Randome bits of syntax that openscad doesn't treat as errors 2011-01-21 03:40:36 -05:00
Elmom b0ea4d7369 fixed tests 2010-10-06 15:51:19 +03:00
Elmo 823f5074df Corrections spotted by tests 2010-08-23 15:51:25 +03:00
Elmom fcf6ba699b incorporated 2D export to involute_gears, by Amp 2010-08-15 12:58:20 +03:00
Elmom d9078fcc76 Added testing infra using py.test. Catches parse errors already, but stl compiling tests fail 2010-07-26 21:03:44 +03:00
Elmom 6dffc908fd Added involute_gears.scad from http://www.thingiverse.com/thing:3575 2010-07-25 18:08:15 +03:00