Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/perhaps.py
Created February 23, 2015 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/90399b67820dbf64628b to your computer and use it in GitHub Desktop.
Save zeffii/90399b67820dbf64628b to your computer and use it in GitHub Desktop.
import bpy
import bmesh
obj = bpy.context.edit_object
me = obj.data
bm = bmesh.from_edit_mesh(me)
# bmesh.ops.recalc_face_normals(bm, faces=bm.faces[:])
bm.normal_update()
for vertex in bm.verts:
print(vertex.normal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment