Blender Git Commit Log

Git Commits -> Revision da860d5

July 30, 2021, 14:56 (GMT)
Edit Mesh: multi-thread auto-smooth sharp-edge calculation

Merge the sharp edge tagging into bm_mesh_loops_calc_normals,
this has the advantage that edge tagging can be performed as part of
walking over each vertices edges - instead of tagging in a separate loop.

Even though this will tag edges twice (once for each vertex),
the computation isn't heavy as it's only calculating a dot-product
between the two face users to compare the angle.

This change combined with 4ba06ad0a8cdec66d9a9cb06f982736d46c40f4c
makes BM_loops_calc_normal_vcos around 5.68x faster,
with an overall speedup over 2.6x when transforming a high poly mesh.
(tested on a system with 32 cores).

Reviewed By: mont29

Ref D11970

Commit Details:

Full Hash: da860d5d1b332a4bd1dbdc8c0f24ce4d1f9a2c10
Parent Commit: 426ac09
Committed By: Fabian Schempp
Lines Changed: +122, -19

1 Modified Path:

/source/blender/bmesh/intern/bmesh_mesh_normals.c (+122, -19) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021