Fixed 705

Former-commit-id: 269e85ecd9
This commit is contained in:
Sebastian Koch
2016-07-08 16:16:27 +02:00
parent 6c61cc5d9f
commit 23143da4d2
+1 -1
View File
@@ -45,7 +45,7 @@ if __name__ == "__main__":
res = (s * ((Vmax - Vmin) / (Vmax - Vmin).maxCoeff())).castint()
def lerp(res, Vmin, Vmax, di, d):
return Vmin[d] + di / (res[d] - 1) * (Vmax[d] - Vmin[d])
return Vmin[d] + float(di) / (res[d] - 1) * (Vmax[d] - Vmin[d])
# create grid
print("Creating grid...")