Comments (9)
Thanks for the marching directions.
For now I will test different fills to see what works best for my use case.
When setting the output file path to use .SVG is there a way to not export the connecting island lines? The Axidraw draw those lines too even though they are not part of the image. I know I could manually delete them, but ...
from pembroider.
The easiest hack to omit the connecting lines is to use a different color for each stroke. For example, iterate through E.colors
and assign each a different random color. (e.g. alternate between #000000 and #010101 to make it invisible to human eye)
However don't worry about the hack since now SVG and PDF exports will omit the connecting lines in the newest commit: e8a945a :)
from pembroider.
Added: 0ca31e8
E.toggleResample(false); //plotter
E.toggleResample(true); //embroidery
from pembroider.
We just got an axidraw se/a3 at the studio.
What would be the best way to go about interfacing with it and take advantage of the PEmbroider functions?
Axidraw works well through Inkspace and also their live draw Processing examples.
I assume I would try to export not to .jef but .svg, open that file again in their live draw Processing examples and have it trace the paths. I wonder though if you have a quicker method ?
from pembroider.
If you're controlling the AxiDraw "offline" (from a file), then I would do your designs with toggleResample(false)
set, and then export .SVG files, then load those files in InkScape and control the AxiDraw from there.
If you were controlling the AxiDraw in real-time from Processing (it's possible), then you would need to reach into the PEmbroider object to get the locations of the stitch points, and then (in separate Processing code) tell the AxiDraw to move there. See https://github.com/evil-mad/AxiDraw-Processing, https://github.com/koblin/AxiDrawProcessing2 .
from pembroider.
Hi @LingDong- ,
Omitting the connecting lines would be very important for plotter stuff! Could you please add this option?
Thanks for testing this @stephanschulz!
Golan
from pembroider.
thx for looking in to this.
we are trying to draw in seeds, similar to sand animation.
from pembroider.
thanks. Indeed your new commit solved it.
from pembroider.
This seems to have solved it for most cases.
But when using satin it still safe the connecting lines in the SVG
//E.noStroke();
E.fill(int(red(layerColors[colorIndex])), int(green(layerColors[colorIndex])), int(blue(layerColors[colorIndex])));
E.hatchSpacing(6);
E.PARALLEL_RESAMPLING_OFFSET_FACTOR = 0.5;
E.hatchAngleDeg(0);
E.hatchMode(PEmbroiderGraphics.SATIN);
E.setStitch(10, 50, 0);
E.image(myImage, 0, 0);
from pembroider.
Related Issues (20)
- compile with Eclipse HOT 3
- non-closed shapes with E.strokeMode(E.PERPENDICULAR) have connecting line HOT 2
- under layer support stitch HOT 1
- Request toggle to enable/disable generation of connecting lines HOT 3
- .jef file format causes machine confusion HOT 1
- Jump stitches not being cut, but stitched HOT 9
- no menu preview (but editor preview!) of .pes files on the Brother NV800E
- SVG Export leave connecting lines between shapes HOT 1
- Concentric fill error on imported images
- Optimize function altering colors
- Potentially helpful sizing function
- In PEmbroider_lines_1.pde example, the bobbin thread gets tangled HOT 4
- Text partially cut off
- simple E.rect problem HOT 2
- Inaccurate license information HOT 4
- layer names as metadata HOT 1
- option to avoid small bridge stitches HOT 10
- culling question. HOT 3
- getting access to PEmbroiderGraphics polylines HOT 2
- satin hatching does not catch all polygons HOT 7
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 pembroider.