hi, we know that SVG tool only provide basic concepts,
but in this case it looks like it is working.
and i not think is is making up these points.
so please study the source code of the Z.svg file
and find out ? if illustrator ? created that points
within the “p” path record.
sorry, at the moment i not even have a idea if there can be a filter code to
erase that points, because what i see as tricky is
the line crossings? ( that are the points you want )
the bend / change direction ( are basic needed points )
-* but the points inside a straight line you not need
( like for plotting… ) but you ?want? them only
if its a cross point.
this is what I did,I added a line to export my SVG from processing, and the I opened it again in illustrator.
I wrote the same script in illustrator, it only draws an ellipse on every vertex.
the added vertices did not show in illustrator !!!
Seems to me like Illustrator added those extra points. You can tell by examining the triangle part of the SVG, which starts at its right bottom corner:
<path class="st0" d="
M353.3800049,529.3249512 [ starting point ]
h-74.2792053 [ move ~74 pixels to the left ]
c17.5899048-17.5899353, [ make a small curve to halfway the line ]
19.9045715-19.8983459, [ continue the line straight, to the top point ]
37.1448975-37.1390991 [ move from the top to the start ]
L353.3800049,529.3249512 [ seal it with an absolute value ]
z"/>
My guess is that you didn’t put in that curve by accident, but that Illustrator added it. Perhaps you can alter the export settings. Otherwise you could tweak the source code of the SVG, but that takes quite some time for complex figures.
yes very much likely.
so you understand that illustrator not make nice files for processing.
( but there might be options in illustrator )
? did you import my above SVG file in processing or illustrator?
but until now you not told us WHY you want to go that way?
and why use SVG
why start from other program? and not draw by processing?
( and import export SVG from there only )
why use the points ( with the circles) where just a line/vertex picture would look much alike.
as just making a jpg can not be the job / reason to use processing at all
( so would be nice to help us to understand the projects background )
I can not draw each piece by code, it will take forever to do it.
but I think I figure out where the problem is coming from, processing reconsider the control points of bezier curves as a vertex, I tried with this curve and as you can see, when I ran my sketch it draws ellipses on the control points and the vertices.
in my first exemple, the lines were bezier curves with control points heading the same direction as the lines, so the extra points are just control points.
screenshot fro illustrator :
I used a script in illustrator to remove all the control points and it is working fine for me now,it is working fine when I am having just straight lines but it will be a problem with curves
this is a result ,
but you can have similar results using the “Hankin’s pattern”, Daniel Shiffman did a tutorial on islamic star pattern, you can see it here: https://www.youtube.com/watch?v=sJ6pMLp_IaI