SVGnet doesn't recognise all elements
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?
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.
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?
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
The script worked perfectly! Thanks.