|
|
|||
File indexing completed on 2026-11-09 10:47:17
0001 import trimesh 0002 import sys 0003 0004 file = sys.argv[1] 0005 print("Checking file "+file) 0006 mesh = trimesh.load_mesh(file) 0007 components = mesh.split(only_watertight=False) 0008 0009 if not mesh.is_watertight or len(components) > 1: 0010 print(" Not watertight - cleaning file") 0011 mesh.merge_vertices() 0012 mesh.fill_holes() 0013 mesh.export(file[:-4]+"_CLEANED.stl") 0014
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|