Corrected bug where rough surfaces would not get created.

这个提交包含在:
craig-warren
2015-10-13 21:28:37 +03:00
提交者 Craig Warren
父节点 193cc6d649
当前提交 172278a6f0

查看文件

@@ -1408,13 +1408,15 @@ def process_geometrycmds(geometry, G):
for k in range(volume.zs, volume.zf + 1):
if volume.mask[i - volume.xs, j - volume.ys, k - volume.zs] == 1:
numID = numIDx = numIDy = numIDz = volume.fractalvolume[i - volume.xs, j - volume.ys, k - volume.zs]
build_voxel(i, j, k, numID, numIDx, numIDy, numIDz, False, G.solid, G.rigidE, G.rigidH, G.ID)
elif volume.mask[i - volume.xs, j - volume.ys, k - volume.zs] == 2:
waternumID = next(x.numID for x in G.materials if x.ID == 'water')
numID = numIDx = numIDy = numIDz = waternumID
build_voxel(i, j, k, numID, numIDx, numIDy, numIDz, False, G.solid, G.rigidE, G.rigidH, G.ID)
elif volume.mask[i - volume.xs, j - volume.ys, k - volume.zs] == 3:
grassnumID = next(x.numID for x in G.materials if x.ID == 'grass')
numID = numIDx = numIDy = numIDz = grassnumID
build_voxel(i, j, k, numID, numIDx, numIDy, numIDz, False, G.solid, G.rigidE, G.rigidH, G.ID)
build_voxel(i, j, k, numID, numIDx, numIDy, numIDz, False, G.solid, G.rigidE, G.rigidH, G.ID)
else:
if volume.nbins == 1: