Add Rack
add_rackAdd a linear gear rack solid with standard full-depth teeth, configurable module and tooth count, to mesh with a matching spur gear and size rail travel.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"teeth": "<teeth>",
"module": "<module>"
},
"name": "add_rack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rack | |
| teeth | Yes | ||
| width | No | ||
| height | No | ||
| module | Yes | ||
| placement | No | ||
| workspace | No | Run this call in this named workspace | |
| pressure_angle | No |