SVGnest icon indicating copy to clipboard operation
SVGnest copied to clipboard

SVGnet doesn't recognise all elements

Open brookefrancis opened this issue 9 years ago • 4 comments

When I upload the SVG file and run the script the programme only recognises 107 out of 139 elements. I'm running the script with the standard settings apart from a 20mm gap between pieces. Any ideas?

Asset 33.svg.zip

brookefrancis avatar Nov 02 '16 17:11 brookefrancis

hi Brooke

I'm assuming the rectangle on top is the bin? A large number of parts are too wide to fit in the bin, so those are not nested and that's reflected in the part count.

Jack000 avatar Nov 05 '16 05:11 Jack000

Thanks for the comments - you are correct in assuming that the larger rectangle is the bin, but it appears that I uploaded the wrond file for that part! This one should be the correct element and still leaves 10 pieces out. I have manually tried to place all the pieces onto the bin and have managed.

Any ideas?

10 [Converted].zip

brookefrancis avatar Nov 07 '16 11:11 brookefrancis

the pieces are rotate randomly so certain orientations can't be placed. Theoretically the GA should eventually converge to a solution where all the long pieces lay flat, but that could take a long time.

I added a patch to filter out obviously un-placeable orientations: https://github.com/Jack000/SVGnest/commit/7809f7a0a49f745d61d3556c65f8d8c90d238ac9

reload the page to get the updated script

the other thing is that the size of your parts are pretty big, so the default settings won't work very well.

I suggest: space between parts: 50 curve tolerance: 9

Jack000 avatar Nov 08 '16 15:11 Jack000

The script worked perfectly! Thanks.

brookefrancis avatar Nov 08 '16 16:11 brookefrancis