mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-05 01:10:05 +00:00
2dc8520938
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
182 lines
3.0 KiB
Plaintext
182 lines
3.0 KiB
Plaintext
# This file uses centimeters as units for non-parametric coordinates.
|
|
v -0.5 -1.5 0.5
|
|
v 0 -1.5 0.5
|
|
v 0 -1.20000005 0.5
|
|
v -0.5 -1.20000005 0.5
|
|
v -0.5 -1.20000005 0
|
|
v 0.5 -1.5 0.5
|
|
v 0.5 -1.20000005 0.5
|
|
v 0.5 -1.20000005 0
|
|
v 0.5 -0.899999976 0.5
|
|
v 0 -0.899999976 0.5
|
|
v 0 -0.599999964 0.5
|
|
v -0.5 -0.899999976 0.5
|
|
v -0.5 -0.600000024 0.5
|
|
v 0.5 -0.600000024 0.5
|
|
v 0.5 -0.300000012 0.5
|
|
v 0 -0.300000012 0.5
|
|
v 0 0 0.5
|
|
v -0.5 -0.300000012 0.5
|
|
v -0.5 0 0.5
|
|
v 0.5 0 0.5
|
|
v 0.5 0.300000012 0.5
|
|
v 0 0.300000012 0.5
|
|
v 0 0.600000024 0.5
|
|
v -0.5 0.300000012 0.5
|
|
v -0.5 0.600000024 0.5
|
|
v 0.5 0.600000024 0.5
|
|
v 0.5 0.899999976 0.5
|
|
v 0 0.900000036 0.5
|
|
v 0 1.20000005 0.5
|
|
v -0.5 0.899999976 0.5
|
|
v -0.5 1.20000005 0.5
|
|
v 0.5 1.20000005 0.5
|
|
v 0.5 1.5 0.5
|
|
v 0 1.5 0.5
|
|
v -0.5 1.5 0.5
|
|
v 0 1.5 0
|
|
v -0.5 1.5 0
|
|
v 0.5 1.5 0
|
|
v 0.5 1.5 -0.5
|
|
v 0 1.5 -0.5
|
|
v -0.5 1.5 -0.5
|
|
v 0 1.20000005 -0.5
|
|
v -0.5 1.20000005 -0.5
|
|
v 0.5 1.20000005 -0.5
|
|
v 0.5 0.899999976 -0.5
|
|
v 0 0.899999976 -0.5
|
|
v 0 0.599999964 -0.5
|
|
v -0.5 0.899999976 -0.5
|
|
v -0.5 0.600000024 -0.5
|
|
v 0.5 0.600000024 -0.5
|
|
v 0.5 0.300000012 -0.5
|
|
v 0 0.300000012 -0.5
|
|
v 0 0 -0.5
|
|
v -0.5 0.300000012 -0.5
|
|
v -0.5 0 -0.5
|
|
v 0.5 0 -0.5
|
|
v 0.5 -0.300000012 -0.5
|
|
v 0 -0.300000012 -0.5
|
|
v 0 -0.600000024 -0.5
|
|
v -0.5 -0.300000012 -0.5
|
|
v -0.5 -0.600000024 -0.5
|
|
v 0.5 -0.600000024 -0.5
|
|
v 0.5 -0.899999976 -0.5
|
|
v 0 -0.900000036 -0.5
|
|
v 0 -1.20000005 -0.5
|
|
v -0.5 -0.899999976 -0.5
|
|
v -0.5 -1.20000005 -0.5
|
|
v 0.5 -1.20000005 -0.5
|
|
v 0.5 -1.5 -0.5
|
|
v 0 -1.5 -0.5
|
|
v -0.5 -1.5 -0.5
|
|
v 0 -1.5 0
|
|
v -0.5 -1.5 0
|
|
v 0.5 -1.5 0
|
|
v 0.5 -0.899999976 0
|
|
v 0.5 -0.599999964 0
|
|
v 0.5 -0.300000012 0
|
|
v 0.5 0 0
|
|
v 0.5 0.300000012 0
|
|
v 0.5 0.600000024 0
|
|
v 0.5 0.900000036 0
|
|
v 0.5 1.20000005 0
|
|
v -0.5 -0.899999976 0
|
|
v -0.5 -0.599999964 0
|
|
v -0.5 -0.300000012 0
|
|
v -0.5 0 0
|
|
v -0.5 0.300000012 0
|
|
v -0.5 0.600000024 0
|
|
v -0.5 0.900000036 0
|
|
v -0.5 1.20000005 0
|
|
s off
|
|
f 1 2 3 4
|
|
f 2 6 7 3
|
|
f 3 7 9 10
|
|
f 4 3 10 12
|
|
f 12 10 11 13
|
|
f 10 9 14 11
|
|
f 11 14 15 16
|
|
f 13 11 16 18
|
|
f 18 16 17 19
|
|
f 16 15 20 17
|
|
f 17 20 21 22
|
|
f 19 17 22 24
|
|
f 24 22 23 25
|
|
f 22 21 26 23
|
|
f 23 26 27 28
|
|
f 25 23 28 30
|
|
f 30 28 29 31
|
|
f 28 27 32 29
|
|
f 29 32 33 34
|
|
f 31 29 34 35
|
|
f 35 34 36 37
|
|
f 34 33 38 36
|
|
f 36 38 39 40
|
|
f 37 36 40 41
|
|
f 41 40 42 43
|
|
f 40 39 44 42
|
|
f 42 44 45 46
|
|
f 43 42 46 48
|
|
f 48 46 47 49
|
|
f 46 45 50 47
|
|
f 47 50 51 52
|
|
f 49 47 52 54
|
|
f 54 52 53 55
|
|
f 52 51 56 53
|
|
f 53 56 57 58
|
|
f 55 53 58 60
|
|
f 60 58 59 61
|
|
f 58 57 62 59
|
|
f 59 62 63 64
|
|
f 61 59 64 66
|
|
f 66 64 65 67
|
|
f 64 63 68 65
|
|
f 65 68 69 70
|
|
f 67 65 70 71
|
|
f 71 70 72 73
|
|
f 70 69 74 72
|
|
f 72 74 6 2
|
|
f 73 72 2 1
|
|
f 6 74 8 7
|
|
f 74 69 68 8
|
|
f 8 68 63 75
|
|
f 7 8 75 9
|
|
f 9 75 76 14
|
|
f 75 63 62 76
|
|
f 76 62 57 77
|
|
f 14 76 77 15
|
|
f 15 77 78 20
|
|
f 77 57 56 78
|
|
f 78 56 51 79
|
|
f 20 78 79 21
|
|
f 21 79 80 26
|
|
f 79 51 50 80
|
|
f 80 50 45 81
|
|
f 26 80 81 27
|
|
f 27 81 82 32
|
|
f 81 45 44 82
|
|
f 82 44 39 38
|
|
f 32 82 38 33
|
|
f 71 73 5 67
|
|
f 73 1 4 5
|
|
f 5 4 12 83
|
|
f 67 5 83 66
|
|
f 66 83 84 61
|
|
f 83 12 13 84
|
|
f 84 13 18 85
|
|
f 61 84 85 60
|
|
f 60 85 86 55
|
|
f 85 18 19 86
|
|
f 86 19 24 87
|
|
f 55 86 87 54
|
|
f 54 87 88 49
|
|
f 87 24 25 88
|
|
f 88 25 30 89
|
|
f 49 88 89 48
|
|
f 48 89 90 43
|
|
f 89 30 31 90
|
|
f 90 31 35 37
|
|
f 43 90 37 41
|
|
|