So the actual challenge, if you are interested, is to nest 3 sets of the circles into 5 sheets of 1220 x 2440mm.
I was thinking something like this but with 3 sets of the circles…
I wonder if this could be the basis of some AI nesting software… Current nesting software seems to be brute force, try every iteration or just start at bottom left and place parts in order of area into the corner.
This is just circles so simple in terms of rotating parts to fit better but I like the way you can shuffle parts by eye and then let the circle packing take over.
It was often quite easy to beat the nesting software by eye on one or 2 sheets worth of parts as the human eye is good at this sort of problem. Often the nesting software is used mostly for time saving or avoiding tedious operations but actual material efficiency is not always crucial.
Maybe the combinations needed to get a good nest are less here as it would be a few different strategies for how to drop the initial layout into the sheets rather than every possible combination?
It beats current nesting software for enjoyment anyway!
If anyone has one of the nesting plugins, please try Daniel’s puzzle above… can you nest all the parts onto the 1965x1965 square or smaller and how long does it take to do that?
Hi Daniel,
Thanks for your sharing. Base on your gh file, I wonder if we can add 2D close curve acts like a “vaccum bag” to achieve a minimal 2D bounday for the circles (see my hand sketch)?
Here’s one tensioning a cable around the outside wrapcircles.gh (16.6 KB)
This way the boundary will form a convex hull of the circles - if you want the boundary to also pull into the concave parts then you’ll need a version with 2d pressure.
I have done a minor change to the GH, I want to predefine the circle radius and add a grab force to it. But don’t know why the whole bag tend to ‘flow’ to the y axis direction…How can I keep my bag not to flow to one direction, so I can manually adjust the circles and bag’s shape and location?
It looks like this drifting issue is caused by something unbalanced in the Area goal.
Here’s a version that uses a simpler 2d pressure to avoid this.
There can still be small amount of drift from the collisions too, so I’ve also added a weak PlasticAnchor (which acts as a sort of static friction).
You need to tell it where your copy of KangarooSolver.dll is installed.
Either when the error pops up on opening, or by right clicking the red script component and selecting Manage Assemblies.
This file is part of Rhino, and if you have multiple versions of Rhino installed, you need to reference the one from the version you are currently running.
I think this will usually be one of these directories:
Thanks Daniel for the impressive circle packing2
as Grasshopper newbie I’m having the same assembly reference issue in Rhino7 for Mac,
do you have a suggestion to run wrapcircles4?
Hi folks,
Thanks this very usefull thread, I played with these definitions but always noticed there’s a C# component that make me feel like the last of the classroom…wait this remember something.
When it’s about packing like above examples is it the only way to do it?As I know nothing about C# this is a kind of prohibition for me, should I copy paste my schoolmate work, again?..
I used the script you posted @DanielPiker [wrapcircles4.gh|attachment], and its been really fun playing with, but i somehow i am unable to ‘drag’ the circles the same way you do. It might just be a stupid ‘disable window selection’ but i am unable find any setting for that.