algorithmic modeling for Rhino
Tags:
In the domain input of the random module you can set it to "3 to 10" for example. Hope it helps.
As far as I understand, Chris's definition doesn't work that way.
I quickly tried to implement an extended random generator, that has an input for minimal distance.
My quick and dirty way was to generate random numbers and check the distance of the new one to all the other ones, skipping those with too little distance.
There is a general issue though, how to detect distance settings that are too strict?
Let's say you want 5 values between 0.0 and 1.0. A min distance of more than 0.25 is obviously nonsense. But although you can find a combination that fullfills a distance requirement of 0.2, the probability decreases and the component takes longer to solve.
I checked the numbers againt the next one of themselves and killed those bigger than 3, I think it is working alright:
Hi man, really elegant solution! Thanks a lot. You rock!
I just modified a bit the last opereation.. the Explode leaves 2 points in the same place, which doubles the quantities, so I just change it to End points, and chose the end points... But the rest really works good. Thanks.
Nankyo.
sorry, i misunderstud, you want to deal with the distance between spheres¡¡¡ let's see
As far as I can tell this definition will keep the spheres from overlapping. The grouped items in the definition were used for testing and can be deleted. Two components give warnings but I couldn't find the problems. As far as I can see the warnings can be ignored. Apologies for the lack of annotations.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by