Comments (5)
yes the double lines are wanted. I just tried out the new version and it is perfect. Thanks, this is going to be very helpfull
from vpype.
linemerge
doesn't attempt to simplify lines. When two lines' endings are close together, they are concatenated and their endings replaced by the mean point, so two collinear 1-segment lines are converted to a single, 3-point line. You want to use linesimplify
after linemerge
to remove those spurious points.
(Note: the Axidraw isn't at all affected by spurious points -- I'm surprised it's the case for other plotters.)
from vpype.
Have I understood this correctly, linemerge will produce a 3- point line (start , mean, end), and linesimplify will remove the mean point and produce a 2-point line ( start and end)?
Just tried with:
vpype read 1.svg linemerge --tolerance 0.1mm linesimplify linesort write --layer-label Pen%d --page-format 191x272mm 1_opt.svg
and I still have what looks like the mean point. Is there a way to output only start and end point lines?
from vpype.
On second look, I'm seeing issues with linemerge
on your file, apparently an issue in Shapely. I've pushed a quick fix that seems to address the situation.
This is what happens now:
vpype read 1.svg linemerge show -dac -u mm
vpype read 1.svg linemerge linesimplify show -dac -u mm
Side note: while looking into that, I got confused with what happens inside the windows, until I realised that there are overlapping lines there. Is that on purpose?
from vpype.
from vpype.
Related Issues (20)
- Request For Comment: Vpype2 - Next Gen Primitive HOT 8
- Help with Raspberry PI installation HOT 6
- `read`'s layer ID attribution doesn't appropriately handle well-formed inkscape layers in some cases HOT 2
- Default to QT_QPA_PLATFORM=xcb on Linux/Wayland HOT 1
- Request: Splitdist with overlapping segments HOT 3
- Can't install on macOS HOT 2
- PySide 6.4.2 has a refresh bug on macOS when the viewer window is resized by a windows manager
- Add support for Axidraw layer name syntax
- Add more filter options HOT 2
- reloop puts the seams where the points are rather than spreading them uniformly over the length of the closed path HOT 1
- `read` entirely discards file containing NaN
- Is there a way to use vpype to count the number of lines/paths in an svg file? HOT 1
- Pyside 6.5.0 breaking changes (Linux)
- Enhancement suggestion -- allow getting document width/height in non-pixel units HOT 2
- Change the layer ID interpretation to match EMSL standard HOT 1
- `--fit-to-margins` adds boarder around margin HOT 1
- Curved Line Spacing Problem HOT 4
- Allow for `layout` arg to maintain size of svg element
- Output error messages when using `execute` from vpype API HOT 4
- Cursive font glyphs are split in multiple strokes HOT 2
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 vpype.