Edit Mesh: partial updates for normal and face tessellation

This patch exposes functionality for performing partial mesh updates
for normal calculation and face tessellation while transforming a mesh.

The partial update data only needs to be generated once,
afterwards the cached connectivity information can be reused
(with the exception of changing proportional editing radius).

Currently this is only used for transform, in the future it could be
used for other operators as well as the transform panel.

The best-case overall speedup while transforming geometry is about
1.45x since the time to update a small number of normals and faces is
negligible.

For an additional speedup partial face tessellation is multi-threaded,
this gives ~15x speedup on my system (timing tessellation alone).
Exact results depend on the number of CPU cores available.

Ref D11494

Reviewed By: mano-wii
This commit is contained in:
2021-05-28 18:18:13 +10:00
parent 00073651d4
commit c2fa36999f
13 changed files with 819 additions and 50 deletions

View File

@@ -46,6 +46,7 @@
* \{ */
struct ARegion;
struct BMPartialUpdate;
struct Depsgraph;
struct NumInput;
struct Object;