design_to_gcode_pipeline
Transform a design description into ready-to-print G-code. This pipeline finds matching templates, generates STL models, analyzes structural integrity, estimates weight, and slices for your printer.
Instructions
End-to-end pipeline: description → template → STL → analysis → GCode.
One-call pipeline that:
1. Searches templates for best match
2. Generates STL via OpenSCAD
3. Runs structural risk analysis
4. Estimates weight
5. Slices to G-code (if slicer available)
:param description: Natural-language design description.
:param output_dir: Directory for output files (uses tempdir if empty).
:param material: Material for weight estimation and slicing.
:param printer_model: Printer model for slicer profile lookup.
:param infill_percent: Infill percentage for weight estimation.
:returns: Dict with paths to SCAD, STL, G-code files, weight, risks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | PLA | |
| output_dir | No | ||
| description | Yes | ||
| printer_model | No | ||
| infill_percent | No |