Subdiv: Initial implementation of CCG
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 6 Sep 2018 15:06:17 +0000 (17:06 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 11 Sep 2018 14:37:02 +0000 (16:37 +0200)
commit3fbdcefa174dd85972b7b63c0955e3a8d42f6943
tree6b1d4b1538f18e847f2e12204a79d89b937edc28
parent998a80435819387ce88d922d7fd7049e8e27b7bf
Subdiv: Initial implementation of CCG

Attempts to substitude CCGDM with an OpenSubdiv based structure
which has less abstraction levels. The missing part in this
substitude is a face pointers which old CCGDM/multires code was
using to stitch faces (averaging boundaries).

Another curial bit missing: "reshaping" of multires CD_MDISPS
to the state of new PBVH grids.

The new code is only available when OpenSubdiv modifier is
enabled (WITH_OPENSUBDIV_MODIFIER=ON) and with debug value of
128. This is so this WIP code is not interfering with current
production machines in the studio.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D3685
source/blender/blenkernel/BKE_paint.h
source/blender/blenkernel/BKE_subdiv.h
source/blender/blenkernel/BKE_subdiv_ccg.h
source/blender/blenkernel/intern/mesh_runtime.c
source/blender/blenkernel/intern/paint.c
source/blender/blenkernel/intern/subdiv_ccg.c
source/blender/blenkernel/intern/subdiv_stats.c
source/blender/editors/sculpt_paint/paint_hide.c
source/blender/makesdna/DNA_mesh_types.h
source/blender/modifiers/intern/MOD_multires.c
source/blender/modifiers/intern/MOD_subsurf.c