Skip to main content

Module gears

Module gears 

Source
Expand description

Gear sections and gear solids.

An involute gear is built the way it is cut: its section is the envelope of a rack cutter rolled round the pitch circle. A rack point q with outward normal n touches the gear when its normal passes through the pitch point; with the gear’s tooth 0 centred on +x, the rack’s rolling line on x = r and the rack displaced by s along +y, that is

  s = (q.x - r) n.y / n.x - q.y,      gear point = Rot(-s / r) (q.x, q.y + s).

The cutter’s straight flank generates the involute; its tip fillet (radius rho) generates the root fillet, the equidistant of the trochoid traced by the fillet’s centre, and so the real undercut when the tooth count is small. Neither curve is rational: each is fitted by a cubic B-spline (C1 Hermite spans, refined until every span is within the fit bound of the closed form at its sample parameters), while the tip and root lands are exact circular arcs.

Structs§

BevelGear
A straight bevel gear with spherical-involute teeth (the true conjugate form; not Tredgold’s back-cone approximation). Module at the heel, shaft angle 90°, pitch cone angle atan(z / z_mate). Apex at the origin, axis +z, the teeth between cone distances R − face width and R; back and front faces are the back and front cones (perpendicular to the pitch cone).
BeveloidGear
A straight beveloid (conical involute) gear: a spur gear whose profile shift grows linearly across the face, cone_angle the angle its tip and root cones make with the axis. Every plane square to the axis is the spur gear the standard rack generates at that plane’s shift, so the flanks are involute helicoids (turning opposite ways on the two sides) and the tip and root are cones; it meshes with spur, helical or beveloid gears on parallel, crossed or skew axes and takes up backlash by sliding along its axis. spur is the gear at z = 0 (its profile shift there) and its face width.
CrownGear
A crown (face) gear: teeth on the flat face of a disc, for a spur pinion whose axis lies parallel to that face and meets the crown’s axis (90° shaft angle). The teeth are cut as a shaper cuts them: a spur shaper with shaper_extra more teeth than the pinion turns about the pinion’s axis while the crown turns with it at the tooth ratio, and the tooth spaces are the volume its teeth sweep. The shaper’s flanks are involutes and its tips are rounded (0.2 × module, less on a thin tooth) and flat between the rounds, so every face of a tooth space (root land, fillets, flanks) is the envelope of one smooth piece of the shaper’s outline. A shaper with more teeth than the pinion touches it at a point rather than along a line, which keeps the pair’s contact clear of the tooth ends.
CycloidalDisc
A cycloidal-drive disc: pins housing pins of diameter pin_diameter on a circle of pin_circle_diameter, the disc running at eccentricity; the disc has pins − 1 lobes. Its profile is the equidistant (by the pin radius plus half the clearance) of the epitrochoid the pin centres trace relative to it.
CycloidalGear
A cycloidal (clock-style) gear: teeth whose addenda are epicycloids rolled by a circle of generating_radius on the pitch circle and whose dedenda are radial lines (the hypocycloid of a circle of half the mate’s pitch radius).
EllipticalGear
An elliptical gear: the pitch curve is an ellipse turning about one of its foci, and the teeth are generated by rolling the standard basic rack round it without slip (the rack’s pitch line tangent to the ellipse, the contact normal through the touching point), as a spur gear is generated round its pitch circle. Two identical elliptical gears with an odd tooth count mesh at a centre distance of the major axis (see elliptical_sizes).
GearData
Derived data of a generated gear (diameters in model units).
GearSection
A closed gear section in the z = 0 plane, counter-clockwise about +z.
GenevaWheel
An external Geneva wheel of slots slots for a driver at centre_distance whose pin of pin_diameter runs on the crank radius a sin(pi / n); the wheel’s radius is a cos(pi / n) (the pin enters the slot tangentially). The rim between slots is cut by the concave locking arc of radius lock_radius + clearance / 2 about the driver’s centre.
HelicalGear
A helical (or, with herringbone, double helical) external gear given by its normal-section values; spur carries them (module = normal module, pressure angle = normal pressure angle, coefficients × normal module).
LanternPinion
A lantern pinion: two discs joined by pins round pins on a circle, as a clock’s or a mill’s pinion, driven by a star wheel’s cycloidal teeth. Exact: pins and disc rims are cylinders, the disc faces planes. The first disc spans z = -thickness..0, the pins z = 0..length, the second disc length..length + thickness; pin 0 is centred on +x.
Rack
A straight-toothed rack: the basic rack profile of teeth teeth along +x from x = 0, the pitch line on y = 0, teeth pointing +y, extruded along +z. Each end stops in the middle of a tooth space.
Ratchet
A ratchet wheel: teeth teeth on outside diameter, depth deep. A saw tooth has a locking face (leaning lean back from radial, so a pawl is drawn in under load) and a straight back; a symmetric tooth leans both faces equally (for a reversible pawl). Teeth lock against counter-clockwise turning when clockwise_locks is false.
RingGear
An internal (ring) gear: involute tooth spaces cut into the inside of a ring. Lengths in model units, angles in radians, coefficients × module.
SectionCurve
One curve of a gear section with the face role it gives the solid.
Sprocket
A roller-chain sprocket (ISO 606 tooth form; ANSI chains are its A series).
SpurGear
An external spur gear generated by a standard rack cutter. Lengths in model units, angles in radians; coefficients are multiples of the module.
StarWheel
A star (pin) wheel: the wheel that drives a lantern pinion, as in clocks and mills. Its teeth are cut for the pinion’s round pins: above the pitch circle each flank is the curve parallel, at the pin radius, to the epicycloid the pin’s centre traces relative to the wheel (the pinion’s pitch circle rolling on the wheel’s), so the pins roll on the flanks; below it the tooth space has straight walls the pin’s width apart and a round root clear of the pins. Module m: wheel pitch radius m × teeth / 2, the pinion’s m × pins / 2. Tooth space 0 is centred on +x.
StraightSpline
A straight-sided spline (ISO 14 form: teeth keys of width key_width between the minor diameter minor and the major diameter major).
TimingPulley
A timing-belt pulley with straight-sided grooves (ISO 5294 Table 2 form; the metric trapezoidal profiles the same way): every curve a line or an arc.
Worm
A cylindrical worm with an Archimedean (ZA) thread: straight flanks in the axial section at the axial pressure angle. Lengths in model units.
WormWheel
A throated (single-enveloping) worm wheel: the teeth are cut as a hob of the mating ZA worm cuts them, the worm’s thread swept by the generating motion (the worm turning, the wheel turning with it at the gear ratio). In every plane across the face width the worm’s thread section moves as a rack and the wheel section is its envelope; the flanks, tips (the throat, a torus about the worm’s axis) and roots are skinned through those sections. Front face on z = 0, back face on z = face width; the worm’s axis runs along +y at x = centre distance, z = face width / 2.

Enums§

Hand
Hand of a helical gear’s teeth.
SprocketForm
Which ISO 606 tooth form a sprocket is cut to.
Twist
The turn of a twisted prism’s section along its height: theta(t) at t = z / width in [0, 1], with an optional crease at t = 1/2 (a herringbone’s apex).

Constants§

GEAR_FIT_TOLERANCE
The fit bound of every fitted gear curve, as a fraction of the module: the largest distance, at the span sample parameters, between a fitted curve and its closed form.
GEAR_GENERATED_TOLERANCE
The bound of a generated (envelope) gear surface against the meshing equation’s points, as a fraction of the module (the build spec’s 1e-5 x module). A skinned surface is within the sum of its section fit’s error and its skin’s (a B-spline surface stays within its control points’ largest deviation), so the bound is split: a quarter to the section fit in each plane, three quarters to the skin between planes.

Functions§

bevel_cones
Derived bevel sizes: (pitch cone angle, cone distance, base cone angle).
bevel_section
The bevel gear section: the spherical tooth outline on the sphere through the heel, centrally projected onto the plane z = h (so every surface the apex sees edge-on — tooth flanks, root and tip cones — becomes a planar curve; the cones’ circles project to exact arcs). Counter-clockwise; roles as the spur gear’s: V/R/K/L/W/G with V/W the radial (meridian) root extension below the base cone when the root lies under it.
bevel_solid
A straight bevel gear solid: the section’s cone (every flank exactly the cone from the apex over the spherical involute) between the front and back cones. Built directly, without booleans: the back cone cuts every generator at the cone distance r, so each face of the tooth outline is its back curve (the outline’s trace on the back cone) scaled towards the apex down to the front cone, a ruled face whose edges are all iso-lines. Faces carry their roles in face.name (R3, K0, …, BACK, FRONT).
beveloid_solid
A beveloid gear solid: plane sections skinned (planes added until the skin holds 1e-5 × module halfway between them). Names as the spur gear’s per tooth, then F (z = 0) and B.
crown_limits
The crown gear’s limits: (undercut limit, pointed-tooth limit). The first is the smallest inner radius at which the shaper’s flank reaches the tips from above its base circle and every wall of the tooth space reaches the cylinder (the flank’s foot, by the round, the last); the second is the largest outer radius that leaves a tip land of 0.05 × module.
crown_sizes
The crown gear’s sizes: [pitch radius, inner radius, outer radius, z of the pitch plane, z of the tips, z of the pinion’s axis], the radii resolved from the limits where 0.
crown_solid
A crown gear solid and its data. Faces carry their names: per tooth space n G<n> (root land), V<n> / W<n> (the +θ and −θ fillets), R<n> / L<n> (the +θ and −θ flanks), I<n> and O<n> (the inner and outer cylinder from the middle of tooth n − 1 to the middle of tooth n); per tooth n (between spaces n and n + 1) K<n> (tip land); and B (the back).
cycloidal_disc_section
The disc’s section, counter-clockwise: one fitted piece per lobe, LB<k>.
cycloidal_disc_solid
A cycloidal disc solid: the section extruded along +z; names LB<k>, F, B.
cycloidal_gear_section
The cycloidal gear’s section, counter-clockwise. Per tooth k: R<k>/L<k> the radial dedendum flanks, ER<k>/EL<k> the epicycloidal addenda, K<k> the tip land (absent when pointed), G<k> the root land.
cycloidal_gear_solid
A cycloidal gear solid; names as the section’s roles, then F and B.
cycloidal_pin_ring
The pin ring of a cycloidal drive: a ring of outside diameter whose bore is the pin circle, with pins pins of pin_diameter centred on it (half standing into the bore). Exact arcs. Faces: P<k> the pins’ exposed halves, G<k> the bore between pins, OD, F, B.
elliptical_section
The elliptical gear section, counter-clockwise about the pivot (the focus, at the origin). Roles per tooth k, as the spur gear’s: V<k> root fillet, R<k> flank rising to K<k> the tip land (normal offset of the pitch curve), L<k> the falling flank, W<k> root fillet, G<k> the root land (inward offset) of the space after tooth k.
elliptical_sizes
The derived sizes of an elliptical gear: (semi-major axis, eccentricity, perimeter, centre distance to an identical mate = 2 × semi-major axis).
elliptical_solid
An elliptical gear solid: the section extruded along +z by the face width; names as the section’s roles, then F and B.
extrude_section
Extrude a counter-clockwise gear section along +z.
flanged_prism
A pulley solid: the section extruded along +z by the width; names as the section’s roles, then F and B. The counter-clockwise section (z = 0) extruded to z = width with a flange disc of radius and thickness under it (and, with both, another over it), built directly rather than as a union. Faces are named: the section’s walls by role, the flanges FL1_OD/FL1_F (its outer face)/FL1_B (the annulus round the section) and FL2_F (the annulus)/FL2_OD/FL2_B, and without a second flange the section’s own end B.
geneva_section
The Geneva wheel section, counter-clockwise; lines and arcs. Slot k on angle 2 pi k / n. Roles: SL<k>/SU<k> its sides, SE<k> its end arc, RA<k>/RB<k> the rim arcs either side of the locking arc LA<k> that follows slot k.
geneva_sizes
Derived Geneva sizes: (crank radius, wheel radius, slot inner centre radius, locking disc radius).
geneva_solid
A Geneva wheel solid: the section extruded along +z; names as the section’s roles, then F and B.
helical_solid
A helical or herringbone gear solid; names as spur_solid.
helical_transverse
The transverse spur gear a helical gear’s every section is (turned).
hollow_prism
A cylinder of radius and height with the counter-clockwise planar section (in z = z0, read off the section) carried through it by rows (as prism_by_rows carries it; the last row planar at z0 + height) taken out: a ring gear or a spline hub, built directly rather than as a boolean. The section’s faces are named by their role (R3, G0, …), the cylinder OD, the face at z = 0 F and the face at z = height B.
hub_from_section
Cut a counter-clockwise section through a cylinder of outside diameter and length: a hub. The section’s faces keep their role names, the cylinder’s are OD, F and B (all in face.name).
lantern_solid
A lantern pinion solid and its data. Faces are named P<k> (pin walls), FL1_OD, FL1_F (the first disc’s outer face), FL1_B (its inner face round the pins), FL2_F (the second disc’s inner face), FL2_OD and FL2_B.
lobed_section
elliptical_section on a pitch curve of lobes lobes about its centre (lobed_sizes); tooth 0 is centred on +x, where the curve is nearest its axis.
lobed_sizes
elliptical_sizes for a pitch curve of lobes lobes, r(θ) = a (1 − e²) / (1 + e cos(lobes · θ)) about its centre (one lobe: the ellipse about its focus). Two equal gears roll on it at the same centre distance 2a.
lobed_solid
A lobed non-circular gear solid (lobed_section extruded by the face width), names as the elliptical gear’s.
prism_by_rows
A planar counter-clockwise section (in a plane z = const) carried along v in [0, 1] by rows, which maps each homogeneous control point to the control points of its v-curve (degree degree_v on knots_v); the last row must again be planar at a constant z (the top cap). Side faces in section order, then the face at v = 0, then the face at v = 1.
rack_section
The section of a straight rack (exact: lines and arcs), counter-clockwise. Roles: G<k> the root land before tooth k (G<teeth> the last one), W<k>/V<k> the root fillets left/right of tooth k, L<k>/R<k> its left (low x) and right flanks, K<k> its tip, BASE the back face, E0 and E1 the ends at x = 0 and x = length.
rack_solid
A rack solid: the section extruded along +z by the face width; names as rack_section, then F (z = 0) and B (z = width).
ratchet_section
The ratchet section, counter-clockwise; straight lines only. Roles per tooth k (tip k on angle 2 pi k / z): LK<k> the locking face below its tip, BK<k> the back running up to it.
ratchet_solid
A ratchet solid: the section extruded along +z; names as the section’s roles, then F and B.
ring_section
The inner (toothed) loop of a ring gear, counter-clockwise about +z, and its data. Roles per tooth space k: R<k> flank on its clockwise side, V<k> its fillet, G<k> the root land, W<k>, L<k>, then K<k> the tip land of the ring tooth after the space.
ring_solid
A ring gear solid: a cylinder of radius root + rim with the toothed loop cut through it. Its faces carry their role names (R3, K0, …, OD the outside, F at z = 0, B at z = width) in face.name.
ring_solid_helical
A helical (or double helical) ring gear: gear in the normal section, its transverse section screwed through the blank. Names as ring_solid.
sprocket_section
The section of a roller-chain sprocket, counter-clockwise; every curve is a circular arc. Tooth k is centred on angle 2 pi k / z (tooth 0 on +x); gap k follows it. Roles: A<k> the flank into gap k, S<k> its roller seating, C<k> the flank out of it, K<k> the tip land of the tooth after gap k (absent when the flanks meet below the tip circle).
sprocket_solid
A sprocket solid: the section extruded along +z by the width; names as sprocket_section, then F and B.
spur_section
The section of an external spur gear, generated by its rack cutter.
spur_sector_solid
An intermittent (mutilated) spur gear: only teeth 0 .. kept of the full gear, the rest of the rim an exact arc. Without locking the gap is the root circle; with it, past one root land after the last tooth and before the first (room for the driven gear’s tooth to leave and enter), the rim rises radially to an arc on the tip circle that locks the driven gear between steps. Names: the kept teeth as the spur gear’s, S the gap’s arc, E0/E1 the locking arc’s radial ends, then F, B.
spur_solid
A spur gear solid: the section extruded along +z by the face width. The face names (suffixes, in the solid’s face order) are the section curves’ roles, then F (the z = 0 face) and B (the z = width face).
star_wheel_section
The star wheel’s section (counter-clockwise; per tooth V the +θ space wall, R its flank, K the tip, L/W the next space’s flank and wall, G that space’s root).
star_wheel_solid
A star wheel solid (the section extruded by the face width) with its face names and data.
straight_spline_hub
A spline hub: the shaft’s section (nominal size) cut through a cylinder.
straight_spline_section
The section of a straight-sided spline shaft, counter-clockwise; exact lines and arcs. Key k is centred on angle 2 pi k / N. Roles: R<k>/L<k> its flanks, K<k> its top on the major circle, G<k> the root land after it.
straight_spline_shaft
A spline shaft: the section extruded along +z by the length; names as the section’s roles, then F and B.
timing_pulley_section
The pulley section, counter-clockwise. Groove k is centred on angle 2 pi (k + 1/2) / z (tooth k on angle 2 pi k / z). Roles per groove k, in order: Q<k> the top corner arc into it, A<k> its first side, U<k> the bottom corner arc, S<k> the bottom, D<k> the other bottom corner arc, C<k> the other side, P<k> the top corner arc out of it, K<k> the land of the next tooth on the outside diameter.
timing_pulley_solid
twisted_prism
Carry a section curve along the twist: the curve turned by theta and lifted A counter-clockwise section (z = 0) carried up to z = width while turning by twist: side faces in section order, then the face at z = 0, then the face at z = width (exactly the section turned by the end angle).
worm_section
The worm’s transverse section (z = 0), counter-clockwise: per start j (its thread centred on angle 2 pi j / n) R<j> the flank on its clockwise side, K<j> the thread’s tip, L<j> the other flank, G<j> the root after it. The flanks are Archimedean spirals (fitted), tip and root exact arcs.
worm_solid
A worm solid: the transverse section screwed along +z by the length (one lead per turn); names as the section’s roles, then F and B.
worm_wheel_sizes
The worm wheel’s sizes: (pitch radius, centre distance, throat radius in the mid-plane, outside radius at the faces).
worm_wheel_solid
A throated worm wheel solid and its data; face names as the spur gear’s per tooth (V/R/K/L/W/G<n>, the K faces making the throat), then F (z = 0) and B.