-
Notifications
You must be signed in to change notification settings - Fork 124
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
Deformed and failing SVG #27
Comments
Hi, thanks, I'll have a look. I always appreciate getting broken examples as the spec is quite complex so it's hard to anticipate all use cases. |
Do you have images of what you expect the deformed one to look like? |
I made a small picture report, maybe it explains better: https://docs.google.com/document/d/1P3u5N2G2JzbthwQ4UgaI7ovQknBmtDkNkOMfo1rI3Cw/edit?usp=sharing I did do my tests 10 days ago, I see you rolled out a new version 2 days ago so maybe these are already fixed... |
Thanks. Unfortunately that update was to ignore polygon meshes, so wouldn't have fixed these. I'm looking at this now |
You are a saint! If I can buy you a coffee somehow, I'd be more than happy too. Thanks for the quick help! |
The ones below are working now (there's a floating point issue in the b-spline lib, #28), which has to be addressed. I'll make a release now with these fixes - more work is needed for FV4EBZBGDVZF630.dxf and StaticBoot3-R14.dxf but at least you can get on with it. |
…ol points - improves SVG fidelity for large splines
Perfect, I really appreciate this! I forgot one more that fails because it's on a different server: https://discuss-assets.s3.amazonaws.com/original/3X/f/7/f754fb4dfe8ea2be046c2a23cf8f3e7ed8f5e8c9.dxf Cheers, Jelle |
Published @3.2.1 |
Can I add these files to the test examples in the repo? Or are they copyrighted? |
you can, besides chair.dxf because I'm not sure about that one, all the others I got from a forum for testing myself :) |
👍 Chair is a bit bit anyways - I'll just extract the one curve that generates the error |
Hi Ben, I adjusted my own code and retested everything. A huge improvement! I am however still having problems with these: http://www.dewesp.com/v6/DXF/plywood-candle-holder-laser-cutter-idea.dxf The right top figure isn't correct, all the others are. http://www.dewesp.com/v6/DXF/Velociraptor.dxf It works if I open it from "\dxf\examples\dxf.html" in a browser and show the svg. But it doesn't when I call it from my app. Maybe it's my side but I don't think so as I'm calling the routine as I do with every DXF. Again thank you, it's already a huge improvement. |
Not sure why the top right one is problematic - it has a similar number of knots & control points to the others. I will have a look in the next couple of days. |
I already implemtent that feature myself but it beats having to copy it every time :) thanks again Ben! |
Do you want to close the issue? |
Yes, I think everything is addressed at this point :) thanks again!!! |
Hello,
I'm using your library for which I want to thank you first, it has been a huge help. Most of the DXF work like a charm but some are deformed and some even fail so I figured I'll let you know, maybe you are unaware.
These are the DXF files that are deformed (downloadable through the link):
http://www.dewesp.com/v6/DXF/cardboard-cupcake-stand-easy-diy-craft-idea.dxf
http://www.dewesp.com/v6/DXF/laser-cut-ornaments-christmas-wood-tree-idea.dxf
http://www.dewesp.com/v6/DXF/plywood-candle-holder-laser-cutter-idea.dxf
http://www.dewesp.com/v6/DXF/rocking-elephant-cnc-router-plans-wood-rocking-horse-idea.dxf
Further I have some that completely fail:
http://www.dewesp.com/v6/DXF/chair.dxf
http://www.dewesp.com/v6/DXF/FV4EBZBGDVZF630.dxf
http://www.dewesp.com/v6/DXF/StaticBoot3-R14.dxf
http://www.dewesp.com/v6/DXF/Velociraptor.dxf
If I can be of any assistance, please let me know 👍
Kind regards and again, big thank you for the library!
Jelle
The text was updated successfully, but these errors were encountered: