From ebcbb50420af437b6e68b64a6e6517de6edbfe6e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 18 Sep 2018 17:46:00 +0200 Subject: Subdiv: CCG, implement stitching of given faces Will speed up (or rather bring speed back to what it is supposed to be) for brushes like smooth. --- source/blender/blenkernel/BKE_subdiv_ccg.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenkernel/BKE_subdiv_ccg.h') diff --git a/source/blender/blenkernel/BKE_subdiv_ccg.h b/source/blender/blenkernel/BKE_subdiv_ccg.h index 99037a25a64..83d97974a28 100644 --- a/source/blender/blenkernel/BKE_subdiv_ccg.h +++ b/source/blender/blenkernel/BKE_subdiv_ccg.h @@ -37,6 +37,7 @@ #include "BLI_sys_types.h" struct CCGElem; +struct CCGFace; struct CCGKey; struct DMFlagMat; struct Mesh; @@ -182,4 +183,9 @@ void BKE_subdiv_ccg_recalc_normals(SubdivCCG *subdiv_ccg); /* Average grid coordinates and normals along the grid boundatries. */ void BKE_subdiv_ccg_average_grids(SubdivCCG *subdiv_ccg); +/* Similar to above, but only updates given faces. */ +void BKE_subdiv_ccg_average_stitch_faces(SubdivCCG *subdiv_ccg, + struct CCGFace **effected_faces, + int num_effected_faces); + #endif /* __BKE_SUBDIV_CCG_H__ */ -- cgit v1.2.3