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§
- Bevel
Gear - 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).
- Beveloid
Gear - A straight beveloid (conical involute) gear: a spur gear whose profile shift grows linearly across the
face,
cone_anglethe 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.spuris the gear at z = 0 (its profile shift there) and its face width. - Crown
Gear - 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_extramore 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. - Cycloidal
Disc - A cycloidal-drive disc:
pinshousing pins of diameterpin_diameteron a circle ofpin_circle_diameter, the disc running ateccentricity; 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. - Cycloidal
Gear - A cycloidal (clock-style) gear: teeth whose addenda are epicycloids rolled
by a circle of
generating_radiuson the pitch circle and whose dedenda are radial lines (the hypocycloid of a circle of half the mate’s pitch radius). - Elliptical
Gear - 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). - Gear
Data - Derived data of a generated gear (diameters in model units).
- Gear
Section - A closed gear section in the z = 0 plane, counter-clockwise about +z.
- Geneva
Wheel - An external Geneva wheel of
slotsslots for a driver atcentre_distancewhose pin ofpin_diameterruns 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 radiuslock_radius + clearance / 2about the driver’s centre. - Helical
Gear - A helical (or, with
herringbone, double helical) external gear given by its normal-section values;spurcarries them (module = normal module, pressure angle = normal pressure angle, coefficients × normal module). - Lantern
Pinion - A lantern pinion: two discs joined by
pinsround 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
teethteeth 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:
teethteeth onoutsidediameter,depthdeep. A saw tooth has a locking face (leaningleanback 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 whenclockwise_locksis false. - Ring
Gear - An internal (ring) gear: involute tooth spaces cut into the inside of a ring. Lengths in model units, angles in radians, coefficients × module.
- Section
Curve - 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).
- Spur
Gear - An external spur gear generated by a standard rack cutter. Lengths in model units, angles in radians; coefficients are multiples of the module.
- Star
Wheel - 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.
- Straight
Spline - A straight-sided spline (ISO 14 form:
teethkeys of widthkey_widthbetween the minor diameterminorand the major diametermajor). - Timing
Pulley - 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.
- Worm
Wheel - 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.
- Sprocket
Form - Which ISO 606 tooth form a sprocket is cut to.
- Twist
- The turn of a twisted prism’s section along its height:
theta(t)att = z / widthin [0, 1], with an optional crease att = 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/GwithV/Wthe 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) andB. - 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>andO<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); andB(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
FandB. - cycloidal_
pin_ ring - The pin ring of a cycloidal drive: a ring of
outsidediameter whose bore is the pin circle, withpinspins ofpin_diametercentred 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 toK<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
FandB. - 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
FandB. The counter-clockwise section (z = 0) extruded to z =widthwith a flange disc ofradiusandthicknessunder it (and, withboth, another over it), built directly rather than as a union. Faces are named: the section’s walls by role, the flangesFL1_OD/FL1_F(its outer face)/FL1_B(the annulus round the section) andFL2_F(the annulus)/FL2_OD/FL2_B, and without a second flange the section’s own endB. - 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 arcLA<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
FandB. - 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
radiusandheightwith the counter-clockwise planar section (in z = z0, read off the section) carried through it byrows(asprism_by_rowscarries 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 cylinderOD, the face at z = 0Fand the face at z =heightB. - hub_
from_ section - Cut a counter-clockwise section through a cylinder of
outsidediameter andlength: a hub. The section’s faces keep their role names, the cylinder’s areOD,FandB(all inface.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_ODandFL2_B. - lobed_
section elliptical_sectionon a pitch curve oflobeslobes about its centre (lobed_sizes); tooth 0 is centred on +x, where the curve is nearest its axis.- lobed_
sizes elliptical_sizesfor a pitch curve oflobeslobes, 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_sectionextruded 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 (degreedegree_vonknots_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,BASEthe back face,E0andE1the 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, thenF(z = 0) andB(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
FandB. - 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>, thenK<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, …,ODthe outside,Fat z = 0,Bat z = width) inface.name. - ring_
solid_ helical - A helical (or double helical) ring gear:
gearin the normal section, its transverse section screwed through the blank. Names asring_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, thenFandB. - 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 ..
keptof the full gear, the rest of the rim an exact arc. Withoutlockingthe 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,Sthe gap’s arc,E0/E1the locking arc’s radial ends, thenF,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) andB(the z = width face). - star_
wheel_ section - The star wheel’s section (counter-clockwise; per tooth
Vthe +θ space wall,Rits flank,Kthe tip,L/Wthe next space’s flank and wall,Gthat 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
FandB. - 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
FandB. - 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>, theKfaces making the throat), thenF(z = 0) andB.