Trying to get a script running for nesting some flat geometries for laser cutting but running into some issues getting all the shapes to show up on the script. All of the geometries appear to be linked but some just aren’t registering on the opennest solver. Any help is greatly appreciated!
Instead of just culling the duplicate line segments, this divides them into groups before joining them. The result is 39 closed curves instead of 23. I’ve just grouped the input line segments based on midpoints. This works with your input geometry, but to create a more robust solution you could add more selection criteria to the grouping code (start/end points, length, etc…).