analyze_mesh_geometry
Compute geometric metrics like volume, surface area, overhangs, and a printability score to identify 3D printing issues before slicing.
Instructions
Deep geometric and printability analysis of a 3D mesh.
Goes beyond basic validation to compute volume, surface area,
center of mass, overhang detection, connected components (floating
parts), degenerate triangles, and a composite printability score
(0-100).
Use this after generating a model to understand its geometry and
identify printability issues before sending to the slicer.
For a STEP/STP CAD file this converts it first and every metric
below is measured on Kiln's mesh copy — except an added ``exact``
block, which carries the volume, surface area and envelope read
from the CAD file's own surfaces. Those two disagree slightly
and the exact ones are the part's: quote ``exact`` when telling
a user how big their CAD part is. ``mesh_quality_scorecard``
gives the same file a fuller intake report.
:param file_path: Path to a mesh (.stl, .obj, .glb) or a CAD file
(.step, .stp), which is converted automatically.
:returns: Dict with full mesh analysis metrics, plus ``exact``
for CAD input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |