Commit 8f9db32
committed
svg2gcode v0.2.0: coordinate system overhaul
This commit completely changes how the coodinate system works based on a
read-through of the W3C SVG docs. It should be _correct_ now.
Circular interpolation is still EXPERIMENTAL! There are known bugs, even
in the test output :(
Miscellaneous brain dump of changes:
- Support polygon
- Better docs
- Explained why transforms are in the opposite order of what you
would expect
- Support preserveAspectRatio
- Proper viewBox support
- Fix SVG -> g-code coordinate system mapping
- DPI conversion: only apply after svg is processed via a wrapper turtle
- Proper handling for percentage units
- Clean up converter/mod.rs, split it up
- Nested viewport support (untested)1 parent 6155d0f commit 8f9db32
20 files changed
Lines changed: 7500 additions & 13646 deletions
File tree
- lib
- src
- converter
- turtle
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
0 commit comments