add_rack
Create a solid linear gear rack (spur gear counterpart) by specifying teeth, module, pressure angle. Ensures pitch matches spur gears for proper meshing.
Instructions
Add a linear gear rack (a spur gear's straight counterpart) as a solid.
A rack is a gear of infinite radius: straight-flanked teeth on a rail. Standard full-depth tooth form (addendum = module, dedendum = 1.25module, tooth height = 2.25module, flanks at pressure_angle from vertical).
teeth: number of teeth (>= 1). module: mm (sets tooth size; circular pitch = module * pi). height: extrusion thickness mm along +Y (the rack's face width; default 6). width: mm, rail base-band thickness below the tooth root line (default 10). pressure_angle: deg, flank angle from vertical (default 20; 0 < pa < 45). placement: optional [x, y, z] mm translation of the rack origin. name: object label (default "Rack").
The profile lies in the XZ plane: root line at z=0, base band from z=-width to z=0, teeth from z=0 to z=2.25*module, extruded along +Y by height.
Returns {handle, name, volume (mm^3), pitch (mm/tooth = modulepi),
module, teeth, tooth_height (2.25module mm), length (teethmodulepi mm)}.
A spur gear MESHES with this rack when their pitch values match
(gear module*pi == rack pitch); length sizes the rail for the travel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rack | |
| teeth | Yes | ||
| width | No | ||
| height | No | ||
| module | Yes | ||
| placement | No | ||
| pressure_angle | No |