Blender Git Commit Log

Git Commits -> Revision b1b07fb

Revision b1b07fb by Campbell Barton (master)
March 10, 2012, 03:25 (GMT)
Speedup for ngon normal calculation

- BM_mesh_normals_update was looping over all faces to find the largest one, this is no longer needed.
- calculating a face normal was looping over every faces corners twice, now only once - using the loops directly (not an iterator).
- face vert locations were being copied an array, now use directly.
- calculating the normals would copy a float vector for the next point in the face, which was never used (only current and previous used).
- was copying vectors to compute the normal, now just assign the float pointers.

Commit Details:

Full Hash: b1b07fb95147ba4f0a4b97909f3adfe4c2c6e6bf
SVN Revision: 44778
Parent Commit: b8f15a1
Lines Changed: +104, -144

5 Modified Paths:

/source/blender/bmesh/bmesh_operator_api.h (+0, -3) (Diff)
/source/blender/bmesh/intern/bmesh_mesh.c (+1, -18) (Diff)
/source/blender/bmesh/intern/bmesh_operators.c (+6, -0) (Diff)
/source/blender/bmesh/intern/bmesh_polygon.c (+95, -120) (Diff)
/source/blender/bmesh/intern/bmesh_private.h (+2, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021