Hi All ,
I have 3 or more shapes ,
I also have wall of intersected lines
I want here to put the objects on the wall . But to make sure the objects will not overlap each other
can rhino help me by calculate it and move it to fill all the possible points ?
solve.3dm (2.2 MB)
@pascal
i believe you can help me here .
Use Grasshopper to do that. You can have it loop through all the possible combinations and discard the ones where they intersect.
Whats your goal you want to optimise for? Just to place them randomly but not have them intersect?
could you please explain more about doing that by grasshopper .
Whats your goal you want to optimise for? Just to place them randomly but not have them intersect?
that’s exactly what i need here
checkforintersection.gh (16.7 KB) Well, you use Grasshopper to create a little script that does just that. You have the objects and you have the grid points. Then there are components to check for intersections.
Something like this:
1 Like
Maybe using galapagos to calculate it is an option? Then you need the option to place the 3 shapes and to place nothing on every point. The fitness could be the amount of objects or the m³ of the shapes because otherwise it will just pick the flat ones. You need to cull every shape that is intersecting so it won’t be used. Its just an idea.
1 Like
Yes, sounds about right. It really depends on what @JP-Mike wants to do. Right I just saw he wants to keep filling it with shapes. Then there is probably better ways to do it and you definitely need to involve some kind of loop.
But I guess step 1 for him would be: Learn the basics of Grasshopper.
1 Like
I Agree with you , grasshopper should be my friend in this case .
Absolutely. Take a look at Anemone. Its a simple looping plugin. With that it would be pretty simple to set it up the way you want. It will be a pretty brute-force approach, but I don’t think there is anything wrong with that. For many things looping actually makes it easier than working with data trees in Grasshopper, because the logic you build is only concerned with 1 thing at a time.
1 Like
I couldnt help myself and had to try it out quickly:
It is using the Anemone Loop components. You can play around with it. Use a random number to change the rotation or size of objects. You could optimise it of course by having it check each point with all geometries or rotations for each point (loop inside a loop).
Basically using Looping you are building it the way you would code it as well using for loops.
Hope it helps to get you started
checkforintersection_loop.gh (23.6 KB)
1 Like
that will help me a lot .
that’s so kind of you , and thanks for the plugin . !