algorithmic modeling for Rhino
Hi, my first post here!
I am trying to make a bunch of random spheres from a set of randomly placed points.
However, the radius of the sphere should be such that they will never intersect with the other spheres. So What I have done is:
1. creating a random set of points
2. use the 3D proximity to find the closest points
3. some how measure the distance of these vectors created from step 2
4. assign the values as radius for each sphere
I am stuck at step 3 now because I am confused about how exactly to use the outputs from the 3D proximity. Anyone knows how to use it please help!
By the way, I am working on this problem as the first approach to a flock or swarm behavior. Does anyone know if there had already been a solution to this? And where I could get it?
I really appreciate anyone that helps!
Tags:
one more question. what is that (a,b) -> (a) block in the middle? I can't seem to find it.
Thanks!
Path Mapper.
Right-click on the component and check the help tab for syntax suggestions.
For what David posted you will have to enter {A;B} and {A}. The curly brackets and the semi-colons matter for proper operation.
Your placeholders need to correspond to the number of levels in the tree structure.
Look at the path names in the panel (alternatively you could use the Param Viewer as David does) you'll see {0;0;0}, {0;0;1}, etc...
Your tree structure has 3 levels, probably due to some other operation further upstream, thus you need 3 placeholders for a valid source mask.
{A;B;C} -> {A} will work.
You can always double click on the GH canvas and search for a component by name.
As David said above...
"This approach ensures that you never get intersecting circles, though it might limit them way too much for your taste..."
Try changing the parameters (like the group number) to get a denser packing.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by