Add rack() module to involute_gears. #72
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a
rack()
module to theinvolute_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
ordiametral_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.