Library to make reading, writing and modifying both binary and ascii STL files easy.
85
Evaluation — 85%
↑ 1.39xAgent success when using this tile
Implement a utility that loads an STL mesh, optionally drops degenerate facets, forces recalculation of geometry-derived data, and returns a structured summary.
@generates
from typing import Dict, List, Sequence
def mesh_report(path: str, *, remove_degenerate: bool = True) -> Dict[str, object]:
"""
Load an STL mesh file, refresh geometry-derived properties, and return a summary.
Returns a dictionary with:
- "triangles": int count of retained facets after optional filtering
- "unit_normals": sequence of 3-float unit normals aligned with the refreshed geometry
- "areas": sequence of facet areas ordered consistently with normals
- "centroids": sequence of facet centroids ordered consistently with normals
- "bounds": {"min": [x, y, z], "max": [x, y, z]} derived from refreshed vertices
"""
...Provides mesh loading, geometry recalculation, and unit normal helpers.
Install with Tessl CLI
npx tessl i tessl/pypi-numpy-stlevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10