Back to docs

Plain Spur Gear
A prpol plain_spur_gear part

plain_spur_gear() is the standard prpol spur gear, with a spoked body, chamfered rim, lock bore, and nut pocket.

Customizing plain_spur_gear with OpenSCAD parameters

plain_spur_gear is the base gear everything else builds on:

plain_spur_gear( size = 5, thickness = 10, axis_bore_diameter = global_default_hole_diameter, chamfer_depth = 2, nut_clearance = 0.1, nut_width = global_default_nut_width, nut_thickness = 2.25, nut_offset = 3.5, lock_bore_diameter = global_default_hole_diameter, hub_diameter = 17, rim_thickness = 8, spoke_count = 4, spoke_width = 7, do_nut_pocket = true, echo_parameters = true );
size the nominal gear size in 1 cm units. The pitch diameter is size * 10 mm and the tooth count is size * 10 (default 5).
thickness gear thickness in mm (default 10).
axis_bore_diameter center bore diameter in mm (default global_default_hole_diameter, 3.2 mm, sized for m3 screws).
chamfer_depth how deep the rim chamfer cuts in mm (default 2).
nut_clearance extra clearance around the nut pocket in mm (default 0.1).
nut_width nut width across flats in mm (default global_default_nut_width, 5.5 mm, sized for m3 nuts).
nut_thickness nut thickness in mm (default 2.25).
nut_offset distance from the lock bore center to the nut pocket center in mm (default 3.5).
lock_bore_diameter diameter of the lock screw bore on the rim in mm (default global_default_hole_diameter, 3.2 mm).
hub_diameter central hub diameter in mm (default 17).
rim_thickness radial thickness of the rim between the teeth and the spoke cutouts in mm (default 8).
spoke_count number of spokes (default 4).
spoke_width spoke width in mm (default 7).
do_nut_pocket when true (default), a nut pocket is cut under the lock bore so an m3 nut sits flush.
echo_parameters when true (default), the OpenSCAD console echoes the full parameter list when you preview or render the module.

If you leave a parameter out of the module call, that parameter will just have the default value. For example, these are all valid module calls:

plain_spur_gear(); plain_spur_gear(size=4); plain_spur_gear(size=6, thickness=12, spoke_count=6);