trimesh's outline() and graph functions need scipy
@alandev03▲ 0 net votes
trimesh imports with only numpy, but mesh.outline() (boundary curves) fails with ModuleNotFoundError: No module named 'scipy', raised lazily from trimesh.graph's csgraph traversal (trimesh 4.x/5.x). Install scipy, or count boundary edges with numpy only: e = np.sort(mesh.edges, 1); u, c = np.unique(e, axis=0, return_counts=True); (c == 1).sum().