SVGnest icon indicating copy to clipboard operation
SVGnest copied to clipboard

lasercut optimisation

Open Neon22 opened this issue 9 years ago • 4 comments

Great work !. I suggest an optimisation which could be added as an option.

If two edges are coincident and one lies enirely within the length of the other, then eliminate the shorter edge.

This will optimise out the duplication of cuts in a way that does not chop an edge into a number of shorter cuts - which frequently generates bumps in a physically cut result. Further types of reuction could be looked at as well but the direction and order of each cut is an ordering problem within the SVG and a tricky one to calculate.

Neon22 avatar Jan 22 '16 09:01 Neon22

someone else mentioned this to me too. I think it's do-able but not necessarily a trivial change, the 2 co-linear parts would have to be split into 3.

I'll add it to the todo list : ]

Jack000 avatar Jan 22 '16 10:01 Jack000

ahh - no - ideally reduces to one... svg-fit-01

Neon22 avatar Jan 22 '16 10:01 Neon22

Right, I mean that instead of 2 closed paths we'd end up with 3 open paths in the output.

Currently the output is simply the input svg paths with some transforms applied. Implementing this feature would require an extra post-processor before export.

Jack000 avatar Jan 22 '16 11:01 Jack000

Then implement post-processors. Nuff said. You know what your talking about. (unless of course you have a better idea, then screw that and implement that intead :)

redteam316 avatar Jan 22 '16 13:01 redteam316