Check out the research article by Stam and Loopfor some examples
http://www.dgp.toronto.edu/people/stam/ ... f/qtEG.pdf
I just more or less finished the actual subdivision and smoothing code, and its available at
which is at the point where it compiles fine, and I'm fairly sure its implemented more or less correctly. However, I haven't yet run a single test!
I wrote the code only to deal with 1 subdivision level at the time because;
- Its a lot simpler. Doing different things with triangles and ngons really makes it hard to do anything else.
- If its working with multires, then some sculpting is probably going on at each subdivision level, making a recursive implementation acceptable.
- It could be expended upon later, when the basic stuff is working. It should be possible without recursion.
The code is inspired by CCGSubSurf.
Right now I'm digging through the code in subsurf_ccg, which is enormous. Since everything is pretty much undocumented, its a painstaking procedure.
I'm not even confident I will have the time to finish it.
If anyone feels like helping me out with this I would really appreciate it.