Blender Git Commit Log

Git Commits -> Revision 25c5928

Revision 25c5928 by Bastien Montagne (master)
August 30, 2017, 14:52 (GMT)
Refactor 'split faces' mesh code.

Previous version was trying to do a quick and simple process in the case
we were only considering smooth/flat status of faces.

Thing is, even then, the algorithm was not actually working in all
possible situations, e.g. two smooth faces having a single vertex in
common, but no common edges, would not have split that vertex, leading
to incorrect shading etc.

So now, tweaked slightly our split normals code to be able to generate
lnor spaces even when autosmooth is disabled, and we always go that way
when splitting faces.

Using smooth fans from clnor spaces is not only the only way to get 100%
correct results, it also makes face split code simpler.

Commit Details:

Full Hash: 25c5928b2b6a71a426b123a81b605e2fbe5e297e
Parent Commit: 68dfa0f
Lines Changed: +64, -122

1 Modified Path:

/source/blender/blenkernel/intern/mesh.c (+64, -122) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021