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


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

2 Likes

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

Hello everyone,

I have stumbled across this ā€œproblemā€ that i donā€™t know to solve properly.
Right now I have managed to make them work separately, but my goal is to have both of shapes somehow merged/joined on the one sheet.

If anyone know how to solve this or explain workaround i would be very grateful :slight_smile:
Just enable first set of curves for example case you want.

Thanks everyone :slight_smile:




Multiple nested curve types inside one sheet examples.gh (21.0 KB)

I updated to OpenNest 2, so Iā€™m not able to see if the following is working properlyā€¦ but I think it should :slight_smile: at least theoretically :upside_down_face:

you need to merge together the outer curves of both nesting (A+B) and also merge together the -grouped- inside curves of both nestings (Aā€™+Bā€™)

after that, you use A+B for nesting, and Aā€™+Bā€™ with the Transform info provided by the OpenNest core component

something like this:

Iā€™m attaching the file, but notice that youā€™ll for sure need to connect the DATA parameter to the Geo input of the OpenNest Core (here highlighted in blue): I put there a DATA parameter just to show the wire, so they are actually not connected properly when you open the file

Multiple nested curve types inside one sheet examples_Re.gh (27.2 KB)

[edit] also, if I may, look at how incredibly easy and slender it all becomes with OpenNest 2, you can write the quantity directly in the Copies text panel and it does everything on its own, and also recognises by itself the inside/outside curves as long as they are organized as a Data Tree (no need to use Transform, unless you want to) :

[youā€™ll need to install OpenNest 2 from PackageManager to have this file working]:
Multiple nested curve types inside one sheet examples_OpenNest2.gh (20.1 KB)

@inno Thank you for help :slight_smile:

One more question, I would also like to add an single Closed Planar Curve. I have issues with creating it from Boundary Surfaces as it produces lot of errors on open nest. But if I do it with Patch it works.

Switched to Grasshopper to latest version.


Multiple nested curve types inside one sheet examples 2.gh (18.1 KB)