Skip to content
Snippets Groups Projects
Commit b6b0b5dd authored by Aiko Voigt's avatar Aiko Voigt
Browse files

Removed if-break when encountering missing cells, simply ommitting missing cells is sufficient

parent ca3925fd
No related branches found
No related tags found
No related merge requests found
......@@ -142,13 +142,12 @@ def cubing_next_round(cube_coordinates, visited_triangles, outmost, edge_colours
# list for triangles that will be outmost in next iteration
new_outmost = []
for old in outmost: # consider all EnhancedTri's at the border of visited
for neigh in get_neighbors_of_cell(old.triangle ): # consider all neighbours
new = EnhancedTri(neigh, 0)
if new.triangle == -9999: # use feature: triangles at the grid border claim to be adjacent to -9999
break
else:
if new.triangle != -9999: # ommit missing triangles that occur at the grid border (marked by -9999)
if new.triangle not in visited_triangles: # EnhancedTri new has no cube_coordinate yet
# add new to new_outmost for next round hereafter and update visited_triangles
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment