feat: Add initial implementation for converting SVG nametag designs to multi-part STL files.
This commit is contained in:
13
count_tris.py
Normal file
13
count_tris.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user