Library to make reading, writing and modifying both binary and ascii STL files easy.
85
Evaluation — 85%
↑ 1.39xAgent success when using this tile
Build a small utility that reports whether an STL mesh is watertight and convex, providing both a quick closure signal and a stricter, tolerance-aware closure pass.
closed_quick, closed_exact, and convex are all True. @testclosed_quick and closed_exact are False, and convex is False. @testclosed_exact as True while closed_quick remains False. @testclosed_quick, closed_exact, convex, and exact_method (describing how the exact check was performed); all keys are always present. @test@generates
from typing import Optional, TypedDict
class MeshValiditySummary(TypedDict):
closed_quick: bool
closed_exact: bool
convex: bool
exact_method: str
def analyze_mesh(path: str, tolerance: Optional[float] = None) -> MeshValiditySummary:
"""
Load an STL file, perform quick and exact closure checks (optionally tolerance-aware),
and report convexity in a structured summary.
"""Provides STL mesh loading and validity analysis utilities.
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