OpenSubdiv/opensubdiv/hbr
manuelk 2dc8520938 Fix Chaikin rule
The Chaikin crease interpolation mode seems to be broken:
	   - Catmark / Loop / Bilinear are passing the wrong halfedge vertex to the
	     SubdivideCreaseWeight function which results in sub-edge crease weights
	     being swapped
	   - the loop that iterates over adjacent edges needs to check against both
	     the original edge and its opposite, otherwise it may be incorrectly
	     accumulated into summation of these adjacent edges (with a 0.25 weight)

	   The proposed fix:
	   - Swaps the Dest/Org vertex passed to the SubdivideCreaseWeight (and
	     we probably want Julian to confirm that this the correct fix)
	   - Checks against both the original edge and its opposite in the iteration
	     over adjacent edges
	   - Replaces the std::vector based query with an HbrHalfedgeOperator for
	     better performance (hopefully)

	   The similar fix to OpenSubdiv been reviewed by Tony DeRose.

    Also in the fix:
        - fix "obj" tag parsing of the smooth triangle tag that was incorrectly
          associated with the crease method (and reporting the wrong errors)
        - add regression shapes for both Loop & Catmark schemes to hbr_regression
        - add same shapes to the glViewer
        - improve hbr_regression output to be more readable
        - add command-line argument parsing to hbr_regression
        - add functionality to dump an obj file when regression fails for comparison

fixes #235
2013-11-07 17:06:55 -08:00
..
allocator.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
bilinear.h Fix Chaikin rule 2013-11-07 17:06:55 -08:00
catmark.h Fix Chaikin rule 2013-11-07 17:06:55 -08:00
CMakeLists.txt Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
cornerEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
creaseEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
face.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
faceEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
fvarData.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
fvarEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
halfedge.h Fix edge-only face-varying interpolation. 2013-10-22 09:43:50 -07:00
hierarchicalEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
holeEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
loop.h Fix Chaikin rule 2013-11-07 17:06:55 -08:00
mesh.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
subdivision.h Fix Chaikin rule 2013-11-07 17:06:55 -08:00
vertex.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00
vertexEdit.h Amending Apache license language & file headers. 2013-09-26 12:04:57 -07:00