fel88 / DeepNestPort

DeepNest C# Port
MIT License
78 stars 34 forks source link

Export to SVG flipped the paths, polygons, etc. Is there a reason? #17

Open lucaspein opened 2 years ago

lucaspein commented 2 years ago

Hi! Great work Porting SvgNest! I found that when exporting the figures (1.svg to 18.svg) nested, they're flipped upside down... Attached image! Thanks!! image

lucaspein commented 2 years ago

My workaround : added in the SvgParser.cs -> Export(polygons, sheets) line: sb.AppendLine($"<path fill=\"{fill}\" stroke=\"black\" transform=\"scale(1, -1) translate(0, -{height})\" d =\""); where {height} is the Sheet.HeightCalculated value. This change flips every path vertically.

fel88 commented 2 years ago

Hi, there is no specific reason for flipped parts in SVG export. SVG export was temporary, before DXF was implemented.