![]() Points_in_poly2_close_to_poly1 = is_close(poly2, poly1, tolerance) Points_in_poly1_close_to_poly2 = is_close(poly1, poly2, tolerance) # Find points in poly1, which are closer than given tolerance to any point in poly2 # Check the distances against the given tolerance value Poly1 = np.array(,, , ])ĭist = cKDTree(b).query(a, k=1) # k=1 selects closest one neighbor Here is the code: import matplotlib.pyplot as plt, numpy as np
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |