index microstructure from 1 instead of zero for laguerre tessellation

This commit is contained in:
Tias Maiti 2015-07-28 22:15:32 +00:00
parent 70606770d0
commit 599bb768ef
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def laguerreTessellation(undeformed, coords, weights):
tmp = np.repeat(point.reshape(3,1), N*27, axis=1).T
dist = np.sum((tmp - seeds)*(tmp - seeds),axis=1) - weight
micro[i] = np.argmin(dist)%N
micro[i] = np.argmin(dist)%N + 1
return micro