I’m quite new to grasshopper and i cannot understand what i’m missing in this simple need…
I’m looking to random select one point (from a divided lenght edge) on each edge. Each time i tried, i selected “same” point on all edge.
Is there possible to fix a command on the “last branch” or is it something to try with remapp domain ?
Thanks in advance for your help !
Hi !
I’m back, a random seed in random was not working, it gave me a pattern…
If you can check on those file what will be the right way to random select a point it will be really nice !
Thanks ! BaseTest.3dm (221.8 KB) RandomPoint.gh (17.0 KB)
You might be surprised at how boring it is to explain data trees over and over and over… I’m tired of it.
The surface fragment edge you have chosen with List Item is divided by 3 (4 points) so your random numbers are all between 0 and 3. The end points are duplicated by the adjacent edges’ end points. So what are you trying to accomplish with these random points?
Because this would make more sense if you first partition the surface fragments into rows and columns (Flip Matrix will swap them). Then when you get all done you can use the random points to make interpolated curves.
Here is one possibility. Nurbs curves work better than Interpolate for this because they don’t overlap and intersect. Note that curves don’t reach one end because of the edge method, very similar to the problem I mentioned in the other thread.
The reason interpolated curves overlap and intersect is because of the common end points on adjacent curve segments, as mentioned previously. Another way to avoid that is to skip the end points by narrowing the range (domain) of random numbers. Instead of ‘0 To N’, make it ‘1 To N-1’, like this: