![]() ![]() This Stack Overflow post suggests to try cairosvg input.svg -o output.svg which converts all quadratics q to cubics c. One technical note : I had strange output when a shape such as a letter "G" had quadratic ( q in the svg) parts of the path (I refrain from examples here). to plot on a graph.Īnother way to get coordinates from an svg file: The website takes an svg file and outputs json or csv format x,y coordinates - e.g. How to extract the cartesian coordinates (x,y) of an svg image? UPDATE : I just found this SO post which will help - I just started working on this though : Processing will ultimately need to be done with command-line tools such as awk,bash,sed when the number of points is large enough. ![]() I have discerned some relationships between x,y coords of nodes, circle, m, c, z records in the svg, but that is in progress. I am omitting the svg file contents for brevity, but I have made some progress on my objective of getting circles centered on the points describing a curve by editing the svg file (see this post for example). If nodes are the only way to get coordinates it would be good to know, and if the nodes can be evenly spaced, that will be ideal. I have been able to add nodes, and I could add them to each of those dots and it will work, but will be difficult for large drawings. I think if each of the "dots" of the stroke could be written out as coordinates, my objective might be reached. The example image shows a Bezier curve (using c in the svg) with two nodes, markers on each of the two nodes (but no more), and a dotted stroke between the nodes. Does Inkscape have a way to put points on a curve or line so the coordinates of the points will be written to the svg file? I seem so close to doing this, but perhaps I need a different program. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |