Changing straight gears to helical

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing straight gears to helical

Trakyan
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi there, I'm a bit new to OpenSCAD but keen to learn as I find it easier than other CAD programs.
Right now I'm working with an existing rack and gear generator
http://www.thingiverse.com/thing:5505/#comments
and have run into a problem where the racks being generated can not mesh with the helical gears generated since their teeth are straight. I was wondering if anyone could help me out with how to alter the teeth on the rack so that they mesh with the helical gears teeth.

Or if anyone knows another script which already supports helical or herringbone rack and pinions that would be welcome too.

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Changing straight gears to helical

Parkinbot
The easiest way to transform a straight rack that it meshes with a helical gear, is to use a skew operation. Try the following code with rack() from your lib:

a = 30;  // angle to skew
// ...
multmatrix([[ 1, 0, a/45, 0 ]])             // skew transformation
   rack(mm_per_tooth,n5,thickness,height);
Reply | Threaded
Open this post in threaded view
|

Re: Changing straight gears to helical

Trakyan
This post has NOT been accepted by the mailing list yet.
Thanks, I searched around a bit for a way to skew but wasn't having much luck, then again it was 4 am in the morning. Sorry for the dumb question and thanks heaps.