diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-10 07:25:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-10 07:25:16 +0400 |
commit | b1b07fb95147ba4f0a4b97909f3adfe4c2c6e6bf (patch) | |
tree | 7dc8527c9774a45c29c8dad73b4913be7090f220 /source/blender/editors/object/object_ops.c | |
parent | b8f15a1dd3310fc5dcf1d1ade64ca726e4f08df3 (diff) |
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.
Diffstat (limited to 'source/blender/editors/object/object_ops.c')
0 files changed, 0 insertions, 0 deletions