From b6b0b5dd536e606a4133909294946b4e6afc85d6 Mon Sep 17 00:00:00 2001
From: voigta80 <aiko.voigt@univie.ac.at>
Date: Thu, 16 Sep 2021 15:00:26 +0200
Subject: [PATCH] Removed if-break when encountering missing cells, simply
 ommitting missing cells is sufficient

---
 tricco/cubulation_functions.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tricco/cubulation_functions.py b/tricco/cubulation_functions.py
index 1abc9d4..344cd65 100644
--- a/tricco/cubulation_functions.py
+++ b/tricco/cubulation_functions.py
@@ -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
-- 
GitLab