Replies: 1 comment 10 replies
-
Processing (and py5) can load an SVG file, and then you can get the vertices from the Py5Shape object. Does that work? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I was working with Processing I counted on Geomerative (the site is not loading for me, but there is this repo) for a lot of computational geometry stuff that I now do with shapely.
Back then, before I knew about the undocumented
PFont.get_shape()
for glyph shape extraction, I had to use Geomerative to "distort letters" inspired by André Burnier, also, it had good SVG loading support if I remember correctly.There are some things that I still have to find out how to do... Geomerative had a polygonizer feature that would simplify a shape, I think it would be useful to get bezier/cubic based SVGs and make a
shapely.Polygon
from them. I might have a look at its source maybe...Why would I want those polygons? Because then I can "triangulate" them which is useful to simulate concave shapes in pymunk's 2D physics engine...
Beta Was this translation helpful? Give feedback.
All reactions