Giter Site home page Giter Site logo

Curved Line Spacing Problem about vpype HOT 4 OPEN

TarGz avatar TarGz commented on June 14, 2024
Curved Line Spacing Problem

from vpype.

Comments (4)

abey79 avatar abey79 commented on June 14, 2024

Wow, that's one well documented issueโ€”thanks for that! ๐Ÿ‘๐Ÿป

Off the top of my head, I don't have a direct hypothesis to explain why this happens. I suggest we investigate this more using the vpype viewer. I'm assuming you have various SVG files corresponding to the various trials. Let's overlay one over the other on the vpype viewer and see what happens there. This could be done as follows:

vpype read --layer 1 file_v0.svg  read --layer 2 file_v2.svg  color --layer 1 blue  color --layer 2 red  show

This loads both files in layer 1, respectively 2, and colors them differently.

In the viewer's menu, choose "Outline Mode" and "Show Points". That way, we can inspect how well both files overlap geometrically.

Also, I'm happy to take a look myself if you are will to share the files (ideally the original file, which I assume has actually SVG circles/arc(?) and the various test versions you produced.

from vpype.

TarGz avatar TarGz commented on June 14, 2024

Thank you for the prompt response. I'll follow your recommendation to overlay the different versions. As of now, the half circle does not overlap in the test files I used. I plan to overlap them later and will send an update. In the meantime, here are the test files I've used:

https://www.dropbox.com/t/Tb2qoce6UIKjeimY

from vpype.

TarGz avatar TarGz commented on June 14, 2024

I followed on your recommendation and conducted a test of overlapping an SVG file that was flipped with one that wasn't flipped and to display them in the viewer, and the results were surprisingly accurate. I also have checked the files in Inkscape and everything was perfectly aligned.

image

So I conducted another test to check if the issue could come from Vpype-gcode by merging two Gcode files (one with flip, one without) into the same document and viewed them in various Gcode viewers. It appears that they have a perfect match.

image

To check if the issues could be finally be related to my plotter, I plotted the merged Gcode file twice, once with a fine liner and the other time with a parallel pen. Surprisingly, the problem only occurred with the parallel pen. It may be due to some play in the pen itself, I will need to investigate further and try with different pen, but It's safe to conclude that the issue is not related to Vpype and you can close the issue.

image

I apologize for having incriminated to Vpype in, the first place :-). Thanks for your help on this and for making this great piece of software.

from vpype.

abey79 avatar abey79 commented on June 14, 2024

Again, some thorough follow-up ๐Ÿ‘๐Ÿป I'm glad vpype isn't too broken, but I wished we'd figure that one out.

I'm shooting a bit in the dark here, but maybe there is some weird interaction in with the plotter controller which could be affected by vertex density. It might be interesting to run a few test with various values of read -q XXX input.svg, which will yield a greater/lesser point density.

from vpype.

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.