Involute Gear Script

by robfitz, published

Involute Gear Script by robfitz May 5, 2010

Featured Thing!

0 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps



Involute Gear Script by robfitz is licensed under the GNU - GPL license.

Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

4522Views 1712Downloads


A python script for making involute gear STL models.


From the command line execute a command like this:

python InvoluteGear.py 12 20.0 6.0 gear.stl

The first parameter is the is the number of teeth, the second is the pitch diameter, the third is the thickness of the gear, and the forth is the name of the output file.

Additional options can be used to control the bore size (--BoreDiameter), the hub size (--HubDiameter, --HubWidth), the pressure angle (--PressureAngle, default 20.0 degrees), and how fine the involute surface is with (--StepCount, default 10 steps).

All Apps

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App

Used this today to create a tiny duplex gear for a DVD drive (6 disc changer for car); Used this to make the two gears, and then put them together and added minor details in tinkercad. Works a treat! Many thanks for providing this - I tried a few openscad versions of parametric gears and couldn't get on with them; this worked with no issues :)

Hello, this script is alsmost perfect, just that I need a symmetrical hub on both sides of the gear.
I looked at the code but I am not a real Python programmer. Is it hard to add an option for a symmetrical hub?

Excellent script! Generates nice clean stl files almost instantly. Thanks so much!! :)

what variables would I change in this code in order to draw an internal gear????

Unfortunately my script is unable to create internal gears. If I get time over the weekend I'll look at my textbooks and see if I can figure out the required changes.

Nice job!

Trivia question of the day: why is an "involute" toothed gear better than other gear tooth shapes?

Answer: Involute gear teeth have rolling contact for less wear and smoother running compared to other gear tooth shapes.


Nice! We need more involute gearing in things here. Sometimes things need to be functional.