我正在尝试在TOSCA数据集上评估测地线距离矩阵。例如,以下3D网格-
我尝试使用两个Python实现。
我尝试使用两个Python实现。
- The first one is the scikit-fmm, which does not seems to work on 3d structures at all (am I right?) hence not suitable to the task.
The other one is the gdist package, which Unfortunatlly works on the toy example they provide, but does not work on my mesh, which is only 10,000 faces and 5000 vertices.
When using the gdist library I have the following error:Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) --------CODE SNIPPET---------- c = sio.loadmat('raw_data/TOSCA/cat0.mat') c = c['surface'][0][0] X = c[0] Y = c[1] Z = c[2] TRIV = c[3].astype(np.int32) vertices = np.array(zip(X, Y, Z)).astype(np.float64) vertices = np.reshape(vertices, (vertices.shape[0], 3)) src = np.array([1], dtype=np.int32) trg = np.array([2], dtype=np.int32) np.random.shuffle(TRIV) a = gdist.compute_gdist(vertices,TRIV[:5000], source_indices = src, target_indices = trg)
是否有其他解决方案?我是在错误地使用gdist或scikit-fmm吗?