Blender Git Loki
Git Commits -> Revision a16659e
Revision a16659e by Hans Goudey (temp-vert-normals-cleanup) September 4, 2021, 19:58 (GMT) |
Cleanup: Use C++ types and lambdas for mesh normal calculation - Use `threading::parallel_for` for multithreading, for a simpler API, more readable and concise code. - Use `Span` and `Array` (only internally, the public API is still C) for safer, more automatic memory management. - Since code is much less verbose, combine the callbacks into the main function. Note that the accumulation code could be more concise with `float3`, I just wanted to keep these changes minimal. Differential Revision: https://developer.blender.org/D12402 |
Commit Details:
Full Hash: a16659efb69570fa376b7a2fa926e18bdbdc6b5a
Parent Commit: 7166823
Lines Changed: +102, -145
1 Modified Path:
/source/blender/blenkernel/intern/mesh_normals.cc (+102, -145) (Diff)