Issue while nesting multiple crv

Hi,
My goal is to select multiple curves, duplicate them by making a linear array. Then nesting those in a square. I am able to to do with one curve, it works well. But when I give move dans one curve, and then make a array of those, they all are overlaping in the final result.
the goal is to pack them for lasercuting, so positioning is important.
thanks
image

2D_Nesting.gh (7.4 KB)

Hey,
I have already developed a solution that does what you need precisely. Precise reliable CNC cutting regardless of curvature, double curvature or planar, very accurate results .

farouk.serragedine@gmail.com
Hope it helps.

1 Like

You didnā€™t internalize your two Crv params.

If you flatten the ā€˜Geoā€™ input to OpenNest your problem should disappear.

1 Like

Thanks for the reply,
It is pretty close from what I want, but I would want the curves located inside the half moon shape to stay in there while nesting. Maybe I didnā€™t exactly understand what you meant.
thanks again.

Since you didnā€™t internalize your geometry, I had no way of knowing about the nested curves.

Iā€™ve had success using RUnion to merge nested holes, then Transform to restore the original shapes (with holes). Sorta like this:

Here is a post that includes some code, though it has a wrinkle for determining the number of parts that you want to ignore:

Not quit sure I fully understand this code. But Iā€™ll take a deeper look to it.
I was hopping for a node that act like a ā€™ see all crv as a groupā€™ or something like that

thanks a lot, you already solve half my problem

Iā€™ve said twice that you didnā€™t internalize your two Crv params. Had you done so, I would have replied with working code.

oh sorry about that, I didnā€™t understand what internalize meant.
Hereā€™s the file with the crv internalized.
2D_Nesting.gh (51.8 KB)

Also, english is not my speaking language, so, Iā€™m sorry for the confusion and thank you for your patience

Something like this?


2D_Nesting_2023Jan11a.gh (60.8 KB)

2 Likes

EXACTLY like this :smiley: !
thank you so much for your kind help !

Hi @Vincent_Arsenault, check out this tutorial on how to nest multiple grouped objects with OpenNest:

Another possible solution, separating the outline curve from the interior curves:


2D_Nesting_Attributes.gh (58.4 KB)

Best,
Lina

1 Like

Sweet, thank you ! :smiley:
Iā€™ll take a look at that video.

Hi, I was wondering if there was a way to give multiple inputs with inside geometry. I have been following the video, but I have not been able to make it work.
I have closed curved with text inside them that I want to layout on 4ā€™x8ā€™ sheet.
In my example I have provide only 4, but the project contain more then 100 of those.
I also have provide the CRV in a node. Any other way of doing it would be fine too.
Iā€™ve been using de .GH you provided me last time quite a bit. But I havenā€™t been able to achive what I want, exept if a copy/paste the input multiple time and then manualy set all the curves to one node. Donā€™t need to say that there must be a easier way to achieve that.
image

NestingShape.gh (29.6 KB)

It is not clear what you are trying to do.

The file you attached has 2 Curve components with internalized geometry.

  • The first Curve component contains a rectangle and is connected to the Sheets input of the OpenNest component.
  • The second Curve component contains 6 curves.
    • 4 of them are closed polylines.
    • The other 2 are near zero length open curves.
  • There is no text in the file you uploaded.

There are multiple ways to do this, depending on what your needs are.

  • Hereā€™s what I did with the file you supplied:
    • Culled the 2 near-zero length open curves.
    • Numbered the 4 closed plolylines by their list indices.
    • Nested the 4 closed plolylines.
    • Used the Transform output of the OpenNest component to place the numbers in the nested polylines.

OpenNest_230130a.gh (35.4 KB)

-Kevin

2 Likes

thanks ! this is what I was trying to do !

Cheers !

Nice. Iā€™ve never noticed the InscribeCircle and Text components in OpenNest before since I donā€™t use it for my own projects. So much can be learned by reading other peopleā€™s code! People who show up on the forum to start a thread and look only at the replies they get are really missing out.

1 Like

:+1: :+1: :+1:

Iā€™ve learned most of what I know about grasshopper from reading posts here and looking at solutions provided by others.

-Kevin