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
...@@ -146,9 +146,8 @@ def cubing_next_round(cube_coordinates, visited_triangles, outmost, edge_colours ...@@ -146,9 +146,8 @@ def cubing_next_round(cube_coordinates, visited_triangles, outmost, edge_colours
for old in outmost: # consider all EnhancedTri's at the border of visited 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 for neigh in get_neighbors_of_cell(old.triangle ): # consider all neighbours
new = EnhancedTri(neigh, 0) new = EnhancedTri(neigh, 0)
if new.triangle == -9999: # use feature: triangles at the grid border claim to be adjacent to -9999
break if new.triangle != -9999: # ommit missing triangles that occur at the grid border (marked by -9999)
else:
if new.triangle not in visited_triangles: # EnhancedTri new has no cube_coordinate yet 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 # 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.
Please register or to comment