If you’ve spent any time in CAD software (Fusion 360, SolidWorks, or even FreeCAD), you know that making a spur gear is relatively straightforward. You draw a profile, extrude it, and you’re done.
But the moment you need a helical gear—those beautifully angled teeth found in car transmissions and heavy machinery—things get complicated.
Most engineers resort to downloading generic models from manufacturer libraries or relying on expensive toolboxes. But what if you could build your own Helical Gear Generator? Let’s dive into the geometry, the code, and the why behind the twist. helical gear generator
This is where many manual calculations fail.
The generator ensures these values are synchronized so that when the gear is cut, the tooth size matches the mating gear. The Math of the Twist: Building a Helical
In many gear trains, engineers use "profile shifting" to avoid undercutting (weakening of the tooth root) or to adjust the center distance between two gears. A robust generator automatically adjusts the involute curve based on the profile shift coefficient ($x$).
The tooth profile in the transverse plane is an involute of the base circle. Parametric equations for an involute point at radius $r$ ($r_b \le r \le r_a$): Normal Module ($m_n$): The module measured perpendicular to
$$ \theta = \textinv(\alpha) = \tan \alpha - \alpha $$ where $\alpha = \arccos(r_b / r)$.
In Cartesian coordinates (transverse plane): $$ x = r \cdot \cos(\theta_0 - \theta) $$ $$ y = r \cdot \sin(\theta_0 - \theta) $$ $\theta_0$ is the offset angle ensuring proper tooth spacing.
Before discussing how a generator works, one must understand why helical gears are difficult to model. A helical gear’s teeth are cut at an angle (the helix angle, typically 15° to 45°) relative to the gear’s axis.
When using a standard gear generator (designed for spur gears), the software assumes the tooth profile is uniform across the face width. For a helical gear, the transverse plane (perpendicular to the axis) and the normal plane (perpendicular to the tooth) are different. A true helical gear generator must calculate the involute curve in the normal plane and then sweep that profile along a helical path.