I was wondering if it is possible to create some logic for an attractor pulling magnetically points togther and finally bundle them in "clusters". Would mean if theese points are undercutting a setted minimum distance towards each other they get reduced.
For instance: if two points are undercutting the min dist the definition says draw a line between theese guys and take the midpoint.
You could find the closest neighbor for each point and then measure the distance between them. With a dispatch command you either let them be or if they go below a certain distance create a line and get the midpoint, as you suggested. It should work.
I hope this is of some help.
There is a component which is named -Closest Point-
Inputs are: the point to search from, and the set of points to run through. If the point you search from is in the same list then you would need to create a new list and exclude that point.
Okay here we go: I used the closest point comp to get the nearest neighbors in a specific point. With the larger-than comp I could feed the boolean information to the dispatch guy to let the midpoint appear or dissapear.
Problems:
1. How to get it working for all points disregarding the closest point related to themselfes? I tried to split the list into (a) the point of interest and (b) all other points to avoid comparison to themself. In my case there are sth like 73 points - how to get it working in lists / boolean patterns? I guess no 73 split-list comps?!
2. If I got my nearest point below the declared distance and the midpoint appeares (image) - how to put all needed points (above the minDist) and generated points (midpoints) back together to geometry??! I think somehow dispatching them again.
I am glad for all kind of help - and I know I have to learn VB/C#...
PS: see the image and definition attached (all you need in rhino is a surface)