Giter VIP home page Giter VIP logo

Comments (16)

domoszlai avatar domoszlai commented on September 16, 2024

Please share the SVG

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

I sent it to your email

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

Ok, it was in the spam folder, I have it now

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

The two files are quite different actually. These are the first lines from both:

<polygon id="_x30_:1:0.7492647058823529_2_" points="399.5,305.2 399.5,305.2 399.5,305.2 "/>
<polygon id="_x30_:1:0.7492647058823529_2_" points="399.5,305.2 399.5,305.2 399.5,305.2 399.5,305.2 "/>

In one SVG the polygons have one more coordinate pair. I think the generated gcode is in par with this.

With the default settings:

G17
G90
G0 Z10
G0 X0 Y0
M3
G4 P2000.000000
G00 Z10
G00 X140.9347 Y102.3408
G01 Z0 F10.00
G01 X140.9347 Y102.3408
G01 X140.9347 Y102.3408
G01 X140.9347 Y102.3408
G00 Z10

and the other

G17
G90
G0 Z10
G0 X0 Y0
M3
G4 P2000.000000
G00 Z10
G00 X140.9347 Y102.3408
G01 Z0 F10.00
G01 X140.9347 Y102.3408
G01 X140.9347 Y102.3408
G01 X140.9347 Y102.3408
G01 X140.9347 Y102.3408
G00 Z10

this also looks good to me.

These are really strange polygons though :) I'm not sure that these gcodes are usuable

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

I don't know where additional coordinate pair came from
Some of the repeating coordinates are the former circle. I do this before exporting to get the "point".

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

If you look at the screenshot above, you can see that there are still four coordinates, but there is an offset.

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

What do you mean by offset?

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

изображение
изображение

it's the same file but only with one modification rectangle with size bigger than other graphics

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

in the gcode files you sent me, the coordinates are the same. and if I generate the gcode from the two SVGs, the coordinates are also the same (only there is one more line because of the extra coordinate pair). So, I can't really reproduce he discrapency you show me on the picture

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

It's strange, but I cant to reproduce it by myself now.
This was a stable result on two files. Now I will try to repeat all the steps from the very beginning to achieve the same result.

I attach svg files for future experiments: render.zip, lenna.zip

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

And, there it is: issue.zip
изображение

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

The SVGs are different. The first polygons are:

lenna_alpha_export.svg

<polygon id="_x30_:1:1.4141612200435727" points="266.7,275.5 266.7,275.5 266.7,275.5 266.7,275.5 "/>

lenna_alpha_rect_export.svg

<polygon id="_x30_:1:1.4141612200435727" points="390,275.5 390,275.5 390,275.5 390,275.5 "/>

That's why the gcode is different

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

Is it a bug in Adobe Illustrator svg exporter?

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

I can't say that. Looks like the whole image is shifted horizontally. It is either a bug in the exporter, or you make a mistake :)

from juicy-gcode.

berkut0 avatar berkut0 commented on September 16, 2024

Thank you! 🙏

from juicy-gcode.

domoszlai avatar domoszlai commented on September 16, 2024

👍

from juicy-gcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.