I am using the NetTopologySuite library. We have a buffer curve from LineString at a certain distance, in this case it is 5 units. The drawing also contains regions.
My problem is to attract buffer points to region points if they are at a distance less than the specified one, for example 2.5 units.
Of course, there is an option to check each point, but it is not very effective in my case, since I have tens of thousands of such points on the diagram. To more efficiently pass and find the closest points I used a Quad Tree, maybe there is a way to connect these points more efficiently?
I'd suggest you perform the follwing steps: