I am posting here after hours of searching through forums and tutorials, hoping someone could help figure this out.
Background: In the model, there are several curves that represent the paths of a fence. In one specific part of the fence, I am trying to change the density of the slats. I realize that if I obtain a list of points from the “standard” fence section (slat gap=.4m), I cannot attract those fence points AND keep maximum gap distance at .4m because there are exact number of points to be spaced apart at .4m. To this end, I have tried to decrease the standard gap for this specific section only to produce more points to work with. But alas, my elementary Grasshopper skills are not good enough to figure out how to make scan the remap values and put a maximum gap distance for the points farthest from the attractor point.
Issue: I am trying to figure out how to control the maximum gap distance between slats so that the maximum gap is no larger than .4m.
I would be grateful if anyone with grasshopper knowledge can help me figure this out! If you need any additional info please let me know!
partial fence script.gh (26.7 KB) fence curve 1.3dm (86.5 KB)