I removed a bug which lead to a 'missing atom'
authorClemens Barth <barth@root-1.de>
Wed, 30 May 2012 22:16:12 +0000 (22:16 +0000)
committerClemens Barth <barth@root-1.de>
Wed, 30 May 2012 22:16:12 +0000 (22:16 +0000)
on the top of the octahedron cluster.

Blendphys.

add_mesh_clusters/add_mesh_cluster.py

index 9ec3e3e4fae41d3ef5d37a8946485f68d69e625a..9e68d117982937268f491a8a9b8b6e45ff18828f 100644 (file)
@@ -1046,7 +1046,7 @@ def create_square_lattice(ctype, size, skin, lattice):
         number_i = int(size/(2.0*lattice))       
 
 
-    for k in range(-number_k,number_k):
+    for k in range(-number_k,number_k+1):
         for j in range(-number_j,number_j+1):
             for i in range(-number_i,number_i+1):