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§

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).
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).
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.
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.

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.

Functions§

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.
extrude_section
Extrude a counter-clockwise gear section along +z.
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).
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).
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_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).
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
A pulley solid: the section extruded along +z by the width; names as the section’s roles, then F and B.
twisted_prism
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.