OpenSubdiv: Correct topology cpmparator
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Jan 2019 13:00:57 +0000 (14:00 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 16 Jan 2019 10:00:42 +0000 (11:00 +0100)
commite064777cac02a065e20a9453f6d2a03651250d56
tree7a416b99ac36e03a310434b49bfe87110ec8f0ec
parent5a794c96850e4023ef10582a7de6128e7b7a1f3b
OpenSubdiv: Correct topology cpmparator

This fixes following errors:

- The code didn't work correctly for edges reconstructed by
  the OpenSubdiv's topology refiner (due to indexing
  difference).

- Sharpness of non-manifold and boundary edges was not
  working correctly.
intern/opensubdiv/CMakeLists.txt
intern/opensubdiv/internal/opensubdiv_edge_map.h [new file with mode: 0644]
intern/opensubdiv/internal/opensubdiv_topology_refiner.cc
intern/opensubdiv/internal/opensubdiv_util.h