Merge pull request #637 from campagnola/fix-isosurface

Fix isosurface error:
This commit is contained in:
Luke Campagnola 2018-02-23 19:58:10 -08:00 committed by GitHub
commit 47d59c51f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2172,7 +2172,7 @@ def isosurface(data, level):
## compute lookup table of index: vertexes mapping
faceTableI = np.zeros((len(triTable), i*3), dtype=np.ubyte)
faceTableInds = np.argwhere(nTableFaces == i)
faceTableI[faceTableInds[:,0]] = np.array([triTable[j] for j in faceTableInds])
faceTableI[faceTableInds[:,0]] = np.array([triTable[j[0]] for j in faceTableInds])
faceTableI = faceTableI.reshape((len(triTable), i, 3))
faceShiftTables.append(edgeShifts[faceTableI])