diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-03 10:28:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-03 10:28:13 +0300 |
commit | f75d6c4a8f47de096077ae4dc7c3b4e4ccff4043 (patch) | |
tree | 19ec223f054441fc2712a300d265623bebd1794b /source/blender/bmesh/intern/bmesh_interp.h | |
parent | 77e223ddd5ab69b94f04c34f596b0378f707508c (diff) |
BMesh: add BM_loop_interp_multires_ex which takes cached vars
Avoid recalculating face centers (for each loop) when interpolating multires.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_interp.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_interp.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_interp.h b/source/blender/bmesh/intern/bmesh_interp.h index 969e92f37db..a08a0c90b77 100644 --- a/source/blender/bmesh/intern/bmesh_interp.h +++ b/source/blender/bmesh/intern/bmesh_interp.h @@ -30,7 +30,11 @@ struct LinkNode; struct MemArena; -void BM_loop_interp_multires(BMesh *bm, BMLoop *l_dst, const BMFace *f_src); +void BM_loop_interp_multires_ex( + BMesh *bm, BMLoop *l_dst, const BMFace *f_src, + const float f_dst_center[3], const float f_src_center[3], const int cd_loop_mdisp_offset); +void BM_loop_interp_multires( + BMesh *bm, BMLoop *l_dst, const BMFace *f_src); void BM_vert_interp_from_face(BMesh *bm, BMVert *v_dst, const BMFace *f_src); void BM_data_interp_from_verts(BMesh *bm, const BMVert *v_src_1, const BMVert *v_src_2, BMVert *v_dst, const float fac); |