Scripting in Blender with Python, and working on the API
3 posts • Page 1 of 1
I'm trying to write a script that will take this mesh, find each "island" of vertices, and then export each shape as a list of vertex coordinates in some linear order around the shape (e.g., I don't want triangle order, I want to list the vertices by following each edge)
The goal of all this is to write an exporter that will allow me to draw the shapes in an html5 canvas as filled polygons.
I'm stuck in 2 places. I don't know how to programmatically select each island (the equivalent of pressing L with mouse over one of the shapes), and I haven't been able to figure out how to traverse the vertices in the order that I want. Ideally, given a vertex, there would be some way to find the connecting vertices.
Thanks for your time