79109763

Date: 2024-10-21 11:16:19
Score: 2.5
Natty:
Report link

Assuming you have main data and new data

mainData = existing_Points
newData = generated_Points
tolarance = 1
tree = KDTree(mainData)
indices = tree.query_ball_point(newData, tolerance)
unique_indices = np.unique(np.concatenate(indices))
if len(unique_indices) == 0:
   print("No intersection found")
else:
   print("intersection found")

Is this what you need?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: hs hs