simplify_mesh_model
Reduce triangle count in STL mesh files for faster previews or smaller file sizes. Uses vertex-clustering decimation to merge nearby vertices while preserving shape.
Instructions
Reduce mesh triangle count for faster preview or smaller files.
Uses vertex-clustering decimation to merge nearby vertices.
The result is a lower-resolution version of the same shape.
:param file_path: Path to the STL file.
:param target_ratio: Target fraction of original triangles (0.01-1.0).
:param output_path: Output path (defaults to ``<name>_simplified.stl``).
:returns: Dict with original/simplified triangle counts and reduction percentage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No | ||
| target_ratio | No |