estimate_material_cost
Estimate filament weight, length, and cost for printing a mesh using volume, infill percentage, wall layers, and material density. Supports PLA, PETG, ABS, TPU, ASA, Nylon, PC, PLA+, carbon fiber PLA.
Instructions
Estimate material usage and cost for printing a mesh.
Computes filament weight, length, and cost based on mesh volume,
infill percentage, wall shell count, and material density.
**See also:** ``estimate_print_cost_from_mesh`` for a richer
estimate that includes support material, adhesion, and electricity.
Supported materials: pla, petg, abs, tpu, asa, nylon, pc, pla+,
carbon_fiber_pla.
:param file_path: Path to mesh file (.stl, .obj, or .glb).
:param material: Material type (default "pla").
:param infill_pct: Interior fill percentage 0-100 (default 20).
:param wall_layers: Number of perimeter shells (default 3).
:param cost_per_kg: Override material cost in $/kg (0 = use default).
:returns: Dict with weight, filament length, and cost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | pla | |
| file_path | Yes | ||
| infill_pct | No | ||
| cost_per_kg | No | ||
| wall_layers | No |