openscad / MCAD

OpenSCAD Parametric CAD Library (LGPL 2.1)
http://reprap.org/wiki/MCAD
578 stars 192 forks source link

Add rack() module to involute_gears. #72

Closed rodrigorc closed 4 years ago

rodrigorc commented 4 years ago

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:

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.

test_gear