OpenNest can't use some shapes

I used @inno’s Python script to greatly simplify my version ‘b’ code from yesterday. I deleted the code that isolates unique parts on the assumption that all surfaces in the “unique parts for nesting” will be unique. Surfaces may have holes. I deleted @Petras_Vestartas’s SortGuids because using ‘Guids’ confused me and I couldn’t get it to work… I replaced it with the white group (“ignore holes”). I replaced the ‘Gene Pool’ set of sliders with quantities from @inno’s Python script, which are attributes of the surfaces. I used only one ‘Sheet’ (internalized) because I don’t understand how OpenNest works with multiple sheets when there aren’t enough sheets for all the parts?

To me, this is simple, obvious and elegant.

UPDATE: Replacing version ‘a’ with version ‘b’ - Playing around a little bit, I modified the quantity for one of the surfaces (the big one) and noticed two things:

  • The list of quantities from the Python script doesn’t change unless you reconnect its first input (which I renamed from ‘curve’ to ‘geo’ because these are now expected to be breps (surfaces with optional holes) instead of curves.)

  • I might have been confused but it appeared that the Repeat component didn’t respond correctly to this change, so I grafted its inputs to fix that.

I reduced ‘Iterations’ from 100 to 50 which is much faster and seems to work well enough.


Nesting_issue_2022Oct1b.3dm (66.2 KB)
Nesting_issue_2022Oct1b.gh (20.6 KB)

1 Like