estimate_mesh_weight
Estimate the printed weight of STL, OBJ, GLB, 3MF, or STEP models by computing mesh volume and applying material density, infill ratio, and wall thickness for print planning.
Instructions
Estimate the printed weight of a model file (a STEP file is converted first).
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 a mesh (.stl, .obj, .glb, .3mf) or a CAD
file (.step, .stp), which is converted automatically.
: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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "estimate_mesh_weight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Material name (pla, abs, petg, tpu, nylon, etc.). Default: "pla". | |
| file_path | Yes | Path to a mesh (.stl, .obj, .glb, .3mf) or a CAD file (.step, .stp), which is converted automatically. | |
| infill_percent | No | Infill percentage 0-100 (default 20). Default: 20.0. | |
| wall_thickness_mm | No | Perimeter wall thickness in mm (default 1.2). Default: 1.2. |