Hi !
I would like to convert this attached graphics to plt or dxf in full polygons format. However Im finding troubles in converting strokes/paths to polygons
Some programs (like eagleCad) export polygons like strokes or paths, and I need for the laserplotter a polygon to fill it. No strokes.
I ungrouped, break apart, and converted any stroke or object to a path. Now If I try to make UNION, the polygon result is far away from what I expect. Same for Combine.
Any help is really appreciated.
Strokes to polygons
Strokes to polygons
- Attachments
-
- strokes2path.rar
- ugly eaglecad export to gerber, gerbv export to svg, open in inkscape to convert to dxf or plt
- (20.54 KiB) Downloaded 261 times
-
- inkscape_union.JPG (155.69 KiB) Viewed 6426 times
Re: Strokes to polygons
Welcome aboard!
I don't really understand what you want the design to be.
Could you be a bit more specific?
You are using the tools we would suggest so you might as well attach the original svg.
I don't really understand what you want the design to be.
Could you be a bit more specific?
You are using the tools we would suggest so you might as well attach the original svg.
- flamingolady
- Posts: 687
- Joined: Wed Jun 10, 2009 1:40 pm
Re: Strokes to polygons
If you don't want to see all of the circles, then you could do a path/union, or to just the ones you chose, but I'm also not entirely sure what outcome it is that you are expecting.
Re: Strokes to polygons
Have you checked those two buttons in the upper right corner of the Fill and Stroke dialog? The ones which deals with path intersections.
That could cause it aswell as different (sub)path directions (Path/Reverse). Just in case you would like to avoid future counterdirectional paths, you can enable "Show path direction on outlines" through Inkscape Preferences/Tools/Node.
That could cause it aswell as different (sub)path directions (Path/Reverse). Just in case you would like to avoid future counterdirectional paths, you can enable "Show path direction on outlines" through Inkscape Preferences/Tools/Node.
Re: Strokes to polygons
Hi and thanks for your replies,
I was trying to convert those strokes to a nice polygon, since my laserplotter need a polygon to fill. A was thinking in UNION, but for some reason, is not working as expected.
I take again a portion of the design, ungrouped and break apart everything. Then, I chose UNION with both options that MAESTRAL show me. The result is very similar.
Original: http://bayimg.com/EAnHLAaEa
results with both options: http://bayimg.com/EaNHmAaeA http://bayimg.com/EAnHnaAea
I also attached the drawing.
Thank you so much for you support!
I was trying to convert those strokes to a nice polygon, since my laserplotter need a polygon to fill. A was thinking in UNION, but for some reason, is not working as expected.
I take again a portion of the design, ungrouped and break apart everything. Then, I chose UNION with both options that MAESTRAL show me. The result is very similar.
Original: http://bayimg.com/EAnHLAaEa
results with both options: http://bayimg.com/EaNHmAaeA http://bayimg.com/EAnHnaAea
I also attached the drawing.
Thank you so much for you support!
- Attachments
-
- drawing.svgz
- (7.32 KiB) Downloaded 260 times
Re: Strokes to polygons
A-ha! So that's for a circuit board.
For the poligons, the paths should be combined and the unconnected nodes connected.
Thus delete every second path as they are unnecessary.
At least for that biggest "poligon".
But what do you want the lined background to be? You want to create a closed path from that as well?
Another thing, those circle-like shapes aredrawn with only 3 nodes. Maybe it would be a good idea to redraw them with the ellipse tool.
Edit: attached svg now contains the basic polygon corrected.
For the poligons, the paths should be combined and the unconnected nodes connected.
Thus delete every second path as they are unnecessary.
At least for that biggest "poligon".
But what do you want the lined background to be? You want to create a closed path from that as well?
Another thing, those circle-like shapes aredrawn with only 3 nodes. Maybe it would be a good idea to redraw them with the ellipse tool.
Edit: attached svg now contains the basic polygon corrected.
- Attachments
-
- hlp46.svg
- (61.98 KiB) Downloaded 324 times
Re: Strokes to polygons
Hi Lazur!
Yes, EagleCAD has a very precarious export option, and I found one way to reach the laserplotter:
1) Export from eaglecad in Gerber (http://bayimg.com/naNjfAaea)
2) Open gerber files with opensource Gerbv and export again in SVG
3) open in Inkscape, <b>convert strokes to paths</b>, and export again to plt.
4) Open the plt with a very ugle app for the proprietary laser controller (made only for windows and the only reason I actually need something from microsoft), and plot!
Now, What I did was:
1) Break apart selected nodes http://bayimg.com/NanJPAaEa
2) Combine http://bayimg.com/NaNJHAaEa
3) Union http://bayimg.com/nAnjnaaea
And the end picture is not what I expected from UNION. I think I'm missing something...
Since this is a simple drawing to find the automatized way, I need to make a tool apply order to make the right output for high complex drawings that cant be manipulated.
Yes, EagleCAD has a very precarious export option, and I found one way to reach the laserplotter:
1) Export from eaglecad in Gerber (http://bayimg.com/naNjfAaea)
2) Open gerber files with opensource Gerbv and export again in SVG
3) open in Inkscape, <b>convert strokes to paths</b>, and export again to plt.
4) Open the plt with a very ugle app for the proprietary laser controller (made only for windows and the only reason I actually need something from microsoft), and plot!
Now, What I did was:
1) Break apart selected nodes http://bayimg.com/NanJPAaEa
2) Combine http://bayimg.com/NaNJHAaEa
3) Union http://bayimg.com/nAnjnaaea
And the end picture is not what I expected from UNION. I think I'm missing something...
Since this is a simple drawing to find the automatized way, I need to make a tool apply order to make the right output for high complex drawings that cant be manipulated.
Re: Strokes to polygons
Now you are confusing me with that convert strokes to paths.
Thought that the laser pointer could plot only the outlines.
Thought you want the lines to add up to be one path that the laser beam can follow through at once.
Seemed as the main task, and, for such use, that the original svg is not drawn that way was the problem.
I don't think there is an automatic method in inkscape to capture the right parts and join them back together and remove the doubles, for more complex projects.
In my opinion your work would be much easier if you could produce right svg-s from the start.
And, by that point, is that really necessary to have?
Inkscape can bear with some dxf files, so you may try that instead of exporting thorugh gerbv that seems to mess up the svg-s.
Thought that the laser pointer could plot only the outlines.
Thought you want the lines to add up to be one path that the laser beam can follow through at once.
Seemed as the main task, and, for such use, that the original svg is not drawn that way was the problem.
I don't think there is an automatic method in inkscape to capture the right parts and join them back together and remove the doubles, for more complex projects.
In my opinion your work would be much easier if you could produce right svg-s from the start.
And, by that point, is that really necessary to have?
Inkscape can bear with some dxf files, so you may try that instead of exporting thorugh gerbv that seems to mess up the svg-s.
Re: Strokes to polygons
Eureka ! I found the solution. Im out of battery, gime some hours and post the result with pictures.
meanwhile it was from initial:
ungroup
stroke to path
breakapart selected nodes
stroke to path
combine selected nodes
UNION !
meanwhile it was from initial:
ungroup
stroke to path
breakapart selected nodes
stroke to path
combine selected nodes
UNION !
Re: Strokes to polygons
Many people complain about bad quality export in eaglecad and other electronic cad programs in gerber. If you are a manufacturer, you have to paid for a gerber panelizer program. and I want something free. Paid solutions likes ViewMate work flawless. I think we should make a gerber panelizer here in inkscape plugin, like gcode tools.
Gerbv use cairo internally, I downloaded the source few hours ago to try to understand what it does and how I can automatize this path tasks.
Gerbv use cairo internally, I downloaded the source few hours ago to try to understand what it does and how I can automatize this path tasks.
Re: Strokes to polygons
Hi Lazur,
The right process I follow was:
(F1), Select all & Ungroup
(F2) , Select all & NodeUNION (symbol in fill&stroke)
Break apart selected nodes (icon)
Stroke to paths
Join Selected nodes (icon)
UNION
Versions: 0.48.4
This process is incredible incredible incredible slow. So maybe an script can reduce the time.
Regarding the 0.49dev+12346+11, the result after the final UNION is diferent See attach
The right process I follow was:
(F1), Select all & Ungroup
(F2) , Select all & NodeUNION (symbol in fill&stroke)
Break apart selected nodes (icon)
Stroke to paths
Join Selected nodes (icon)
UNION
Versions: 0.48.4
This process is incredible incredible incredible slow. So maybe an script can reduce the time.
Regarding the 0.49dev+12346+11, the result after the final UNION is diferent See attach
- Attachments
-
- 0.49 UNION ?
- 2013-06-03-225456_1920x1080_scrot.jpg (242.6 KiB) Viewed 6267 times
-
- Goal
- 2013-06-03-222717_1920x1080_scrot.png (208.7 KiB) Viewed 6267 times