import trimesh import sys def count_triangles(file_path): try: mesh = trimesh.load(file_path) print(f"{file_path}: {len(mesh.faces)} triangles") except Exception as e: print(f"Error reading {file_path}: {e}") if __name__ == "__main__": for f in sys.argv[1:]: count_triangles(f)