Comments (6)
You do not need the DPI in this case as 26cm is ~10in so the SVG has ~50DPI. This reflected in juicy-gcode --help
:
I feel like a warning would be appropriate, but also luxurious :D
from juicy-gcode.
Actually, there might be a bug in the current implementation:
<svg width="10cm" height="10cm" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<rect x="1cm" y="1cm" width="10" height="20"/>
</svg>
Not sure in this case what should happen...
from juicy-gcode.
Looking at this example:
<svg width="10cm" height="10cm" viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg">
<rect x="1in" y="1in" width="10" height="20"/>
<rect x="96" y="96" width="10" height="20"/>
</svg>
The two rectangles rendered to the same spot independently of what the viewBox
is. Thus, some default DPI is used to do the inner conversion, event though, the document size is in cm. This is exactly how juicy-gcode
works, so the DPI setting still required
from juicy-gcode.
I confirm that with this example, -d
has an effect on the first rectangle.
Now coming back to the use case.
I was changing -d
without any effect on the output. After a tedious debug session, I realized that the input SVG had something new: the real length.
What would be the luxurious message to save me precious time?
Maybe "Drawing area {X}cm x {Y}cm onto gcode max_x=100,max_y=100"
Thanks!
from juicy-gcode.
But as my previous example suggests, even if the width and height of the SVG is in cm, you might need the DPI to render it.
So I can't give a warning like "-d option ignored because SVG height and width are in centimeters", because it is not true (it might not being used but it is not ignored).
I also can't just dump debug messages to the standard output freely as I might break other people's application.
I could probably add like a debug or info flag...
from juicy-gcode.
from juicy-gcode.
Related Issues (20)
- Floating point dpi values HOT 18
- Some NaN values generated HOT 3
- Tag <line> is not parsed properly HOT 2
- Some files cause a freeze HOT 14
- In some cases g-code generates with offset HOT 16
- Can't open program on Windows 10 64bit HOT 5
- Quadratic spline HOT 6
- "NaN" issue with arcs HOT 7
- Series of Points instead of arcs (Feature Request) HOT 23
- Release files of 0.2.0.1 version are empty HOT 2
- Compiled binaries for rpi (armv6hf) HOT 2
- Control feedrate with object colour (Feature Request) HOT 11
- Is it possible to remove the transformations? HOT 3
- Flavor as an application argument? HOT 5
- Interactive mode feature HOT 1
- Provide a sample flavour with software HOT 3
- Does colour support have an "after" option? HOT 4
- Parametric tokens to use with flavor HOT 3
- cannot build with stack 2.3.3 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from juicy-gcode.