Deepnest icon indicating copy to clipboard operation
Deepnest copied to clipboard

Unable to define parts that belong together before sorting

Open IDFWT opened this issue 3 years ago • 5 comments

I've been trying to use Deepnest for nesting artwork, unfortunately there are pieces I can't define as being a part of another to avoid having it sorted elsewhere.

DNO3

For example, in the image above I would want to have Deepnest ensure those three pieces highlighted would be linked to each other. As of right now it is moving the leaf of the apple and a white piece I created near the characters mouth that's there for cutting purposes. Original image included if it helps any:

O3

IDFWT avatar Apr 18 '21 05:04 IDFWT

I think this is conceivably possible by grouping elements in your design software (Illustrator, Inkscape, etc). But I haven't personally found a consistent way to do it yet.

jestelle avatar Apr 20 '21 22:04 jestelle

the few times i needed a group, i drew a line connecting the two shapes, then deleted it after running deepnest

dorkmo avatar Apr 20 '21 22:04 dorkmo

It seems like you're wanting to have parts cut out (the black lines - plus the green leaf) and the inner colourings (everything except the green) would be used to engrave? Is that correct?

The way the nest works is it extracts a representative polygon including an outer edge and any inner "holes" contained within the outer. That's what you're seeing in the list of parts. I've only worked with Dxfs and havn't seen anything that would suggest it has any concept of the colouring you're expecting it to include within the outer cut; if you're using Dxfs try using Svgs... but I can't confirm that would fare any better. (Sorry, just noticed image )

What it will do is use the original image, rotated, when it's doing the export (having used only the representative approximation during the actual nest to work out positionings). If you can force it to recognise your image as a single entity, perhaps as Dorkmo suggests, when you export it might reimpose the colouring detail.

9swampy avatar Sep 04 '21 17:09 9swampy

Has there been any solution for this yet?

PoetikDragon avatar Apr 08 '22 01:04 PoetikDragon

I want to use this tool to generate stickers. Tight nesting is great for optimal sheet usage, but this tool ignores group relations. Changing the code to honor (inkscape) groups would be fine for me, but seems unachievable without a new maintainer.

Adding additional lines as @9swampy and @dorkmo described might work to connect logical areas, but it won't conserve colors, linewidth and others.

Has someone found a workaround that conserves visual appearance?

ModischFabrications avatar Apr 24 '22 12:04 ModischFabrications