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
SVG Import #834
SVG Import #834
Conversation
What is the future of this one? |
It needs more love. |
I think experimental feature sounds like a good idea! |
@t-paul I brushed a little dust off this one, and added an experimental check. I feel it might make sense to merge to master, to get some more external input on this. |
Cool, that would unblock the AMF-Import too :-). |
..and the export-import test now proves that importing exported svg's yield the same result :) |
Old SVG test files are here: https://github.com/openscad/svg-tests |
This is my test file - I use it in the inkscape to openscad extension. It has nested paths and loops. |
@Neon22 Thanks, that's helpful. This has been merged to master, so it will be available in the next snapshot build. Perhaps you'd like to test it :) Which OS are you using? |
windoze 7. |
Nightly builds on OBS are updated, Windows builds are next on my list... |
@t-paul Related to Windows, I just noticed this: http://www.appveyor.com/docs/installed-software -> They have msys2 installed, so it might be possible to bootstrap a Windows build on that service |
@Neon22 See http://files.openscad.org/snapshots/ |
Trying this on 64bit zip (exe does not show up anywhere).
but getting format not supported error: What's the proper command - any options ? |
@Neon22 It's still experimental, so you have to enable it in Preferences->Features |
ahh brilliant thanks.... |
Tested:
Note:
Zip attached of files. Final note.
IF we can't separate the many internal primitives into sep objects then user wil have to manually sep and load several files. In which case its absolutely critical that they are not repositioned/rescaled relative to each other. |
Tested: (in general working very well except for Arcs and fill/stroke state. Top marks)
Note:
Zip attached of files. Final note.
IF we can't separate the many internal primitives into sep objects then user wil have to manually sep and load several files. In which case its absolutely critical that they are not repositioned/rescaled relative to each other. |
@Neon22 Btw., what was wrong with the arc? It looks correct to me (renders as a 'pacman' in OpenSCAD) |
I saw nothing at all. could be this initial condition I was referring to. On initial start it would not load the ..generate.svg nor the arc test but I had loaded rects and circles before trying to load the arc. but the arc failed. I saw nothing. |
SVG Importer based on libxml, eigen3 and boost. This is supposed to become a library later, but right now it's simply integrated into the OpenSCAD build system.
The test suite currently has examples from the SVG-Spec, the W3C Test Suite and a collection of images from the OpenClipArt library. The results are published on http://files.openscad.org/svglibtest/ for discussion how specific cases should be handled.
ToDo:
Might be considered as well: