From 9521a11854f285c6306bdfd44534faa90c918464 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Tue, 20 Mar 2012 20:45:34 -0600 Subject: [PATCH] initial blender mesh dumper --- dump.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 dump.py diff --git a/dump.py b/dump.py new file mode 100644 index 0000000..a32030c --- /dev/null +++ b/dump.py @@ -0,0 +1,8 @@ +import bpy + +m = bpy.data.meshes['Cube'] + +print("verts:", [list(v.co) for v in m.vertices]) +print("faces:", [list(f.vertices) for f in m.faces]) +print("edge keys:", [f.edge_keys for f in m.faces]) +print("edges:", [list(e.vertices) for e in m.edges])