hi, i am trying for a project to have a gradient, this is just a begining of a longer function but my problem is just here, how could I have a similar gradient of points per line, lets say, min 1mm in between points and max 5 mm between points, so all the points in betwen slowly grade from min to max, thsi is what i managed to do:
which results in this:
and if possible, could this gradient be controlled through atractor points?
thank you very much
Hello,
Unsure about what your final goal is about.
If you want to divide a line into segments where the first segment is exactly 1mm, the last one exactly 5mm and the intermediate lengths grow linearly, then this is solved mathematically.
Given L the length of the curve, x0 and xn the first and last lengths, the number of intermediate points is
n=(2L)/(x0+xn) -1
(2L has to be divisible by (x0+xn))
and the length increment is
r=(xn-x0)/n
If you have a point somewhere that attracts the points, you could divide the points equally, compute the distance to that attractor and then Remap
the distances from 1 to 5… But there is no gurantee that all points will fit on the base line anymore.
LineSeries.gh (10.3 KB)
thank you very much, I changed a few things so it would still work as I wanted, i am now looking on how to add atractor lines on it