Blender Git Loki

Git Commits -> Revision a16659e

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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021