Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucaspein opened this issue Mar 31, 2022 · 2 comments
Open

Comments

@lucaspein
Copy link

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
Copy link
Author

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
Copy link
Owner

fel88 commented Apr 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants