DeepNestPort icon indicating copy to clipboard operation
DeepNestPort copied to clipboard

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

Open lucaspein opened this issue 3 years ago • 2 comments

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 avatar Mar 31 '22 20:03 lucaspein

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.

lucaspein avatar Apr 01 '22 18:04 lucaspein

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

fel88 avatar Apr 01 '22 18:04 fel88