r/blenderpython • • Mar 22 '15

Python access to vertices, polygons, topology etc

I'm working on a school project about mesh decimation and thought that blender would be a good place to test things - and make illustrations of course. Can I access vertices, polygons and topology directly from python, or do I have to make something more low level to try these things out?

4 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/dustractor Mar 23 '15

Since you mentioned dealing with topology, you might want to use the bmesh module to access the mesh elements.

bmesh module docs

example

Given the raw data (verts/edges/faces) you would have to build maps for topological relations, but bmesh does this for you.

1

u/bwerf Mar 23 '15

Thanks, I'll take a look at it.