Import CAD projects and cad-router v1

This commit is contained in:
Jerry
2026-07-22 19:38:36 +08:00
parent e4e0199bd5
commit af9f630c11
2253 changed files with 1994207 additions and 0 deletions
@@ -0,0 +1,64 @@
# make_herringbone_gear_rsolid
## API Definition
```python
def make_herringbone_gear_rsolid(n_teeth: int, module: float, pressure_angle: float = 20.0, helix_angle: float = 32.0, gear_height: float = 10.0, *, addendum_factor: float = 1.0, clearance_factor: float = 0.25, backlash: float = 0.0) -> Solid
```
*Source: std/gear.py*
## Import Surface
- standard library: `import simplecadapi as scad` then `scad.std.gear.make_herringbone_gear_rsolid(...)`; direct submodule import: `from simplecadapi.std.gear import make_herringbone_gear_rsolid`
## Description
Create an involute herringbone (double-helical) gear.
Each half is modeled as a small-step ruled loft through rotated copies of
one profile, with a shared center section forming the herringbone ridge.
This keeps closed-wire section correspondence stable while avoiding smooth
loft bulging in STEP exports.
## Parameters
### n_teeth
- **Type**: `int`
- **Description**: Number of teeth (>= 3).
### module
- **Type**: `float`
- **Description**: Gear module in mm.
### pressure_angle
- **Type**: `float, default 20`
- **Description**: Pressure angle in degrees.
### helix_angle
- **Type**: `float, default 32`
- **Description**: Helix angle of each half in degrees.
### gear_height
- **Type**: `float, default 10.0`
- **Description**: Total gear thickness along Z in mm.
### addendum_factor
- **Type**: `float, default 1.0`
- **Description**: Tooth addendum as a multiple of module.
### clearance_factor
- **Type**: `float, default 0.25`
- **Description**: Root clearance beyond the addendum, as a multiple of module.
### backlash
- **Type**: `float, default 0.0`
- **Description**: Circumferential tooth-thickness reduction at the pitch circle in mm.