apply_design_reinforcements
Analyzes a mesh for structural risks and auto-applies reinforcements: thickened walls, filleted corners, base plate, and gusset ribs. Returns before/after structural scores.
Instructions
Analyze a mesh for structural risks, then auto-apply fixes.
This is the **one-step design hardening tool** — it runs the full
structural analysis pipeline, then applies every applicable fix:
- **Thin necks** → thickened walls (+material at narrow sections)
- **Sharp corners** → filleted edges (stress concentration eliminated)
- **Insufficient base** → wider base plate (stabilizing geometry added)
- **Cantilevers** → triangular gusset ribs (deflection reduced 3-10x)
Returns a before/after structural score so agents can see the
improvement. Reinforcements that can't be auto-applied (like
``reorient``) are listed in ``skipped`` with guidance.
Requires OpenSCAD for base plate and gusset operations.
:param file_path: Path to the STL file to reinforce.
:param output_path: Output path (defaults to ``<name>_reinforced.stl``).
:param fillet_radius_mm: Fillet radius for sharp corners (default 1.5).
:param wall_thicken_mm: Amount to add to thin walls (default 0.6).
:param base_height_mm: Height of stabilizing base plate (default 2.0).
:returns: Dict with before/after scores, applied/skipped reinforcements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No | ||
| base_height_mm | No | ||
| wall_thicken_mm | No | ||
| fillet_radius_mm | No |