estimate_mesh_weight
Estimate the printed weight of an STL file by computing mesh volume with the divergence theorem and applying material density, infill, and wall thickness.
Instructions
Estimate the printed weight of an STL file.
Uses the divergence theorem to compute mesh volume, then applies
material density, infill ratio, and shell fraction for a realistic
weight estimate.
:param file_path: Path to an STL file.
:param material: Material name (pla, abs, petg, tpu, nylon, etc.).
:param infill_percent: Infill percentage 0-100 (default 20).
:param wall_thickness_mm: Perimeter wall thickness in mm (default 1.2).
:returns: Dict with volume, weight estimates, bounding box.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | pla | |
| file_path | Yes | ||
| infill_percent | No | ||
| wall_thickness_mm | No |