This commit is contained in:
hofee
2024-10-08 21:28:30 +08:00
parent d9d2716ba7
commit 3ab046b134
11 changed files with 773 additions and 354 deletions

View File

@@ -152,9 +152,15 @@ class ReconstructionUtil:
@staticmethod
def check_scan_points_overlap(history_indices, indices2, threshold=5):
for indices1 in history_indices:
if len(set(indices1).intersection(set(indices2))) >= threshold:
return True
try:
if len(indices2) == 0:
return False
for indices1 in history_indices:
if len(set(indices1).intersection(set(indices2))) >= threshold:
return True
except Exception as e:
print(e)
import ipdb; ipdb.set_trace()
return False