OpenSubdiv/regression/hbr_regression/baseline/catmark_chaikin0_level1.obj
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

710 lines
14 KiB
Plaintext

# This file uses centimeters as units for non-parametric coordinates.
v -0.4375 -1.5 0.4375
v -0.25 -1.5 0.5
v -0.25 -1.3499999 0.5
v -0.4375 -1.35000002 0.4375
v -0.5 -1.3499999 0.25
v 0 -1.5 0.5
v 0 -1.35000002 0.5
v 0.25 -1.3499999 0.5
v 0 -1.19999993 0.5
v 0.25 -1.05000007 0.5
v -0.25 -1.05000007 0.5
v -0.25 -1.20000005 0.5
v -0.4375 -1.19999993 0.4375
v -0.5 -1.05000007 0.25
v 0.25 -1.5 0.5
v 0.4375 -1.5 0.4375
v 0.4375 -1.35000002 0.4375
v 0.5 -1.3499999 0.25
v 0.4375 -1.19999993 0.4375
v 0.5 -1.05000007 0.25
v 0.25 -1.20000005 0.5
v 0 -1.05000007 0.5
v 0.4375 -1.05000007 0.4375
v 0.4375 -0.899999976 0.4375
v 0.5 -0.75 0.25
v 0.25 -0.75 0.5
v 0.25 -0.899999976 0.5
v 0 -0.899999976 0.5
v -0.25 -0.75 0.5
v -0.4375 -1.05000007 0.4375
v -0.25 -0.899999976 0.5
v -0.4375 -0.899999976 0.4375
v -0.5 -0.75 0.25
v -0.5 -0.75 0.5
v 0 -0.75 0.5
v 0 -0.599999964 0.5
v 0.25 -0.449999988 0.5
v -0.25 -0.449999988 0.5
v -0.25 -0.600000024 0.5
v -0.5 -0.600000024 0.5
v 0.5 -0.75 0.5
v 0.5 -0.600000024 0.5
v 0.25 -0.600000024 0.5
v 0 -0.449999988 0.5
v 0.5 -0.450000018 0.5
v 0.5 -0.449999988 0.25
v 0.5 -0.300000012 0.5
v 0.25 -0.299999982 0.5
v 0.25 -0.150000006 0.5
v 0 -0.299999982 0.5
v -0.25 -0.150000006 0.5
v -0.5 -0.450000018 0.5
v -0.5 -0.449999988 0.25
v -0.25 -0.299999982 0.5
v -0.5 -0.300000012 0.5
v -0.5 -0.150000006 0.5
v 0 -0.150000006 0.5
v 0 0 0.5
v 0.25 0.150000006 0.5
v -0.25 0.150000006 0.5
v -0.25 0 0.5
v -0.5 0 0.5
v 0.5 -0.150000006 0.5
v 0.5 0 0.5
v 0.25 0 0.5
v 0 0.150000006 0.5
v 0.5 0.150000006 0.5
v 0.5 0.300000012 0.5
v 0.25 0.300000012 0.5
v 0.25 0.450000018 0.5
v 0 0.300000012 0.5
v -0.25 0.450000018 0.5
v -0.5 0.150000006 0.5
v -0.25 0.300000012 0.5
v -0.5 0.300000012 0.5
v -0.5 0.450000018 0.5
v 0 0.450000018 0.5
v 0 0.600000024 0.5
v 0.25 0.75 0.5
v -0.25 0.75 0.5
v -0.25 0.600000024 0.5
v -0.5 0.600000024 0.5
v 0.5 0.450000018 0.5
v 0.5 0.600000024 0.5
v 0.25 0.600000024 0.5
v 0 0.75 0.5
v 0.5 0.75 0.5
v 0.5 0.899999976 0.5
v 0.25 0.899999976 0.5
v 0.25 1.04999995 0.5
v 0 0.899999976 0.5
v -0.25 1.04999995 0.5
v -0.5 0.75 0.5
v -0.25 0.899999976 0.5
v -0.5 0.899999976 0.5
v -0.5 1.04999995 0.5
v 0 1.04999995 0.5
v 0 1.20000005 0.5
v 0.25 1.35000002 0.5
v -0.25 1.35000002 0.5
v -0.25 1.20000005 0.5
v -0.5 1.20000005 0.5
v 0.5 1.04999995 0.5
v 0.5 1.20000005 0.5
v 0.25 1.20000005 0.5
v 0 1.35000002 0.5
v 0.5 1.35000002 0.5
v 0.5 1.5 0.5
v 0.25 1.5 0.5
v 0 1.5 0.5
v -0.5 1.35000002 0.5
v -0.25 1.5 0.5
v -0.5 1.5 0.5
v -0.25 1.5 0.25
v -0.5 1.5 0.25
v 0 1.5 0.25
v 0.25 1.5 0.25
v 0 1.5 0
v 0.25 1.5 -0.25
v -0.25 1.5 -0.25
v -0.25 1.5 0
v -0.5 1.5 0
v 0.5 1.5 0.25
v 0.5 1.5 0
v 0.25 1.5 0
v 0 1.5 -0.25
v 0.5 1.5 -0.25
v 0.5 1.5 -0.5
v 0.25 1.5 -0.5
v 0 1.5 -0.5
v -0.5 1.5 -0.25
v -0.25 1.5 -0.5
v -0.5 1.5 -0.5
v -0.25 1.3499999 -0.5
v -0.5 1.35000002 -0.5
v 0 1.35000002 -0.5
v 0.25 1.3499999 -0.5
v 0 1.19999993 -0.5
v 0.25 1.05000007 -0.5
v -0.25 1.05000007 -0.5
v -0.25 1.20000005 -0.5
v -0.5 1.20000005 -0.5
v 0.5 1.35000002 -0.5
v 0.5 1.20000005 -0.5
v 0.25 1.20000005 -0.5
v 0 1.05000007 -0.5
v 0.5 1.04999995 -0.5
v 0.5 0.899999917 -0.5
v 0.25 0.899999976 -0.5
v 0.25 0.75 -0.5
v 0 0.899999976 -0.5
v -0.25 0.75 -0.5
v -0.5 1.04999995 -0.5
v -0.25 0.899999976 -0.5
v -0.5 0.899999917 -0.5
v -0.5 0.75 -0.5
v 0 0.75 -0.5
v 0 0.599999964 -0.5
v 0.25 0.449999988 -0.5
v -0.25 0.449999988 -0.5
v -0.25 0.600000024 -0.5
v -0.5 0.600000024 -0.5
v 0.5 0.75 -0.5
v 0.5 0.600000024 -0.5
v 0.25 0.600000024 -0.5
v 0 0.449999988 -0.5
v 0.5 0.450000018 -0.5
v 0.5 0.300000012 -0.5
v 0.25 0.299999982 -0.5
v 0.25 0.150000006 -0.5
v 0 0.299999982 -0.5
v -0.25 0.150000006 -0.5
v -0.5 0.450000018 -0.5
v -0.25 0.299999982 -0.5
v -0.5 0.300000012 -0.5
v -0.5 0.150000006 -0.5
v 0 0.150000006 -0.5
v 0 0 -0.5
v 0.25 -0.150000006 -0.5
v -0.25 -0.150000006 -0.5
v -0.25 0 -0.5
v -0.5 0 -0.5
v 0.5 0.150000006 -0.5
v 0.5 0 -0.5
v 0.25 0 -0.5
v 0 -0.150000006 -0.5
v 0.5 -0.150000006 -0.5
v 0.5 -0.300000012 -0.5
v 0.25 -0.300000012 -0.5
v 0.25 -0.450000018 -0.5
v 0 -0.300000012 -0.5
v -0.25 -0.450000018 -0.5
v -0.5 -0.150000006 -0.5
v -0.25 -0.300000012 -0.5
v -0.5 -0.300000012 -0.5
v -0.5 -0.450000018 -0.5
v -0.5 -0.449999988 -0.25
v 0 -0.450000018 -0.5
v 0 -0.600000024 -0.5
v 0.25 -0.75 -0.5
v -0.25 -0.75 -0.5
v -0.25 -0.600000024 -0.5
v -0.5 -0.600000024 -0.5
v 0.5 -0.450000018 -0.5
v 0.5 -0.449999988 -0.25
v 0.5 -0.600000024 -0.5
v 0.25 -0.600000024 -0.5
v 0 -0.75 -0.5
v 0.5 -0.75 -0.5
v 0.5 -0.75 -0.25
v 0.4375 -0.899999976 -0.4375
v 0.5 -1.05000007 -0.25
v 0.25 -1.04999995 -0.5
v 0.25 -0.899999976 -0.5
v 0 -0.899999976 -0.5
v -0.25 -1.04999995 -0.5
v -0.5 -0.75 -0.5
v -0.5 -0.75 -0.25
v -0.25 -0.899999976 -0.5
v -0.4375 -0.899999976 -0.4375
v -0.5 -1.05000007 -0.25
v -0.4375 -1.04999995 -0.4375
v 0 -1.04999995 -0.5
v 0 -1.20000005 -0.5
v 0.25 -1.35000002 -0.5
v -0.25 -1.35000002 -0.5
v -0.25 -1.20000005 -0.5
v -0.4375 -1.19999993 -0.4375
v -0.5 -1.3499999 -0.25
v 0.4375 -1.04999995 -0.4375
v 0.4375 -1.20000005 -0.4375
v 0.5 -1.3499999 -0.25
v 0.25 -1.20000005 -0.5
v 0 -1.35000002 -0.5
v 0.4375 -1.35000002 -0.4375
v 0.4375 -1.5 -0.4375
v 0.25 -1.5 -0.5
v 0 -1.5 -0.5
v -0.4375 -1.35000002 -0.4375
v -0.25 -1.5 -0.5
v -0.4375 -1.5 -0.4375
v -0.25 -1.5 -0.25
v -0.5 -1.5 -0.25
v 0 -1.5 -0.25
v 0.25 -1.5 -0.25
v 0 -1.5 0
v 0.25 -1.5 0.25
v -0.25 -1.5 0.25
v -0.25 -1.5 0
v -0.5 -1.5 0
v 0.5 -1.5 -0.25
v 0.5 -1.5 0
v 0.25 -1.5 0
v 0 -1.5 0.25
v 0.5 -1.5 0.25
v -0.5 -1.5 0.25
v 0.5 -1.35000002 0
v 0.5 -1.19999993 0
v 0.5 -1.20000005 0.25
v 0.5 -1.20000005 -0.25
v 0.5 -1.05000007 0
v 0.5 -0.899999976 -0.25
v 0.5 -0.899999976 0
v 0.5 -0.899999976 0.25
v 0.5 -0.75 0
v 0.5 -0.599999964 0
v 0.5 -0.600000024 0.25
v 0.5 -0.600000024 -0.25
v 0.5 -0.449999988 0
v 0.5 -0.299999982 -0.25
v 0.5 -0.150000006 -0.25
v 0.5 -0.299999982 0
v 0.5 -0.150000006 0.25
v 0.5 -0.299999982 0.25
v 0.5 -0.150000006 0
v 0.5 0 0
v 0.5 0.150000006 -0.25
v 0.5 0.150000006 0.25
v 0.5 0 0.25
v 0.5 0 -0.25
v 0.5 0.150000006 0
v 0.5 0.300000012 -0.25
v 0.5 0.450000018 -0.25
v 0.5 0.300000012 0
v 0.5 0.450000018 0.25
v 0.5 0.300000012 0.25
v 0.5 0.450000018 0
v 0.5 0.600000024 0
v 0.5 0.75 -0.25
v 0.5 0.75 0.25
v 0.5 0.600000024 0.25
v 0.5 0.600000024 -0.25
v 0.5 0.75 0
v 0.5 0.899999976 -0.25
v 0.5 1.04999995 -0.25
v 0.5 0.899999976 0
v 0.5 1.04999995 0.25
v 0.5 0.899999976 0.25
v 0.5 1.04999995 0
v 0.5 1.20000005 0
v 0.5 1.35000002 -0.25
v 0.5 1.35000002 0.25
v 0.5 1.20000005 0.25
v 0.5 1.20000005 -0.25
v 0.5 1.35000002 0
v -0.5 -1.35000002 0
v -0.5 -1.19999993 0
v -0.5 -1.20000005 -0.25
v -0.5 -1.20000005 0.25
v -0.5 -1.05000007 0
v -0.5 -0.899999976 0.25
v -0.5 -0.899999976 0
v -0.5 -0.899999976 -0.25
v -0.5 -0.75 0
v -0.5 -0.599999964 0
v -0.5 -0.600000024 -0.25
v -0.5 -0.600000024 0.25
v -0.5 -0.449999988 0
v -0.5 -0.299999982 0.25
v -0.5 -0.150000006 0.25
v -0.5 -0.299999982 0
v -0.5 -0.150000006 -0.25
v -0.5 -0.299999982 -0.25
v -0.5 -0.150000006 0
v -0.5 0 0
v -0.5 0.150000006 0.25
v -0.5 0.150000006 -0.25
v -0.5 0 -0.25
v -0.5 0 0.25
v -0.5 0.150000006 0
v -0.5 0.300000012 0.25
v -0.5 0.450000018 0.25
v -0.5 0.300000012 0
v -0.5 0.450000018 -0.25
v -0.5 0.300000012 -0.25
v -0.5 0.450000018 0
v -0.5 0.600000024 0
v -0.5 0.75 0.25
v -0.5 0.75 -0.25
v -0.5 0.600000024 -0.25
v -0.5 0.600000024 0.25
v -0.5 0.75 0
v -0.5 0.899999976 0.25
v -0.5 1.04999995 0.25
v -0.5 0.899999976 0
v -0.5 1.04999995 -0.25
v -0.5 0.899999976 -0.25
v -0.5 1.04999995 0
v -0.5 1.20000005 0
v -0.5 1.35000002 0.25
v -0.5 1.35000002 -0.25
v -0.5 1.20000005 -0.25
v -0.5 1.20000005 0.25
v -0.5 1.35000002 0
s off
f 1 2 3 4
f 2 6 7 3
f 3 7 9 12
f 4 3 12 13
f 6 15 8 7
f 15 16 17 8
f 8 17 19 21
f 7 8 21 9
f 9 21 10 22
f 21 19 23 10
f 10 23 24 27
f 22 10 27 28
f 13 12 11 30
f 12 9 22 11
f 11 22 28 31
f 30 11 31 32
f 32 31 29 34
f 31 28 35 29
f 29 35 36 39
f 34 29 39 40
f 28 27 26 35
f 27 24 41 26
f 26 41 42 43
f 35 26 43 36
f 36 43 37 44
f 43 42 45 37
f 37 45 47 48
f 44 37 48 50
f 40 39 38 52
f 39 36 44 38
f 38 44 50 54
f 52 38 54 55
f 55 54 51 56
f 54 50 57 51
f 51 57 58 61
f 56 51 61 62
f 50 48 49 57
f 48 47 63 49
f 49 63 64 65
f 57 49 65 58
f 58 65 59 66
f 65 64 67 59
f 59 67 68 69
f 66 59 69 71
f 62 61 60 73
f 61 58 66 60
f 60 66 71 74
f 73 60 74 75
f 75 74 72 76
f 74 71 77 72
f 72 77 78 81
f 76 72 81 82
f 71 69 70 77
f 69 68 83 70
f 70 83 84 85
f 77 70 85 78
f 78 85 79 86
f 85 84 87 79
f 79 87 88 89
f 86 79 89 91
f 82 81 80 93
f 81 78 86 80
f 80 86 91 94
f 93 80 94 95
f 95 94 92 96
f 94 91 97 92
f 92 97 98 101
f 96 92 101 102
f 91 89 90 97
f 89 88 103 90
f 90 103 104 105
f 97 90 105 98
f 98 105 99 106
f 105 104 107 99
f 99 107 108 109
f 106 99 109 110
f 102 101 100 111
f 101 98 106 100
f 100 106 110 112
f 111 100 112 113
f 113 112 114 115
f 112 110 116 114
f 114 116 118 121
f 115 114 121 122
f 110 109 117 116
f 109 108 123 117
f 117 123 124 125
f 116 117 125 118
f 118 125 119 126
f 125 124 127 119
f 119 127 128 129
f 126 119 129 130
f 122 121 120 131
f 121 118 126 120
f 120 126 130 132
f 131 120 132 133
f 133 132 134 135
f 132 130 136 134
f 134 136 138 141
f 135 134 141 142
f 130 129 137 136
f 129 128 143 137
f 137 143 144 145
f 136 137 145 138
f 138 145 139 146
f 145 144 147 139
f 139 147 148 149
f 146 139 149 151
f 142 141 140 153
f 141 138 146 140
f 140 146 151 154
f 153 140 154 155
f 155 154 152 156
f 154 151 157 152
f 152 157 158 161
f 156 152 161 162
f 151 149 150 157
f 149 148 163 150
f 150 163 164 165
f 157 150 165 158
f 158 165 159 166
f 165 164 167 159
f 159 167 168 169
f 166 159 169 171
f 162 161 160 173
f 161 158 166 160
f 160 166 171 174
f 173 160 174 175
f 175 174 172 176
f 174 171 177 172
f 172 177 178 181
f 176 172 181 182
f 171 169 170 177
f 169 168 183 170
f 170 183 184 185
f 177 170 185 178
f 178 185 179 186
f 185 184 187 179
f 179 187 188 189
f 186 179 189 191
f 182 181 180 193
f 181 178 186 180
f 180 186 191 194
f 193 180 194 195
f 195 194 192 196
f 194 191 198 192
f 192 198 199 202
f 196 192 202 203
f 191 189 190 198
f 189 188 204 190
f 190 204 206 207
f 198 190 207 199
f 199 207 200 208
f 207 206 209 200
f 200 209 211 214
f 208 200 214 215
f 203 202 201 217
f 202 199 208 201
f 201 208 215 219
f 217 201 219 220
f 220 219 216 222
f 219 215 223 216
f 216 223 224 227
f 222 216 227 228
f 215 214 213 223
f 214 211 230 213
f 213 230 231 233
f 223 213 233 224
f 224 233 225 234
f 233 231 235 225
f 225 235 236 237
f 234 225 237 238
f 228 227 226 239
f 227 224 234 226
f 226 234 238 240
f 239 226 240 241
f 241 240 242 243
f 240 238 244 242
f 242 244 246 249
f 243 242 249 250
f 238 237 245 244
f 237 236 251 245
f 245 251 252 253
f 244 245 253 246
f 246 253 247 254
f 253 252 255 247
f 247 255 16 15
f 254 247 15 6
f 250 249 248 256
f 249 246 254 248
f 248 254 6 2
f 256 248 2 1
f 16 255 18 17
f 255 252 257 18
f 18 257 258 259
f 17 18 259 19
f 252 251 232 257
f 251 236 235 232
f 232 235 231 260
f 257 232 260 258
f 258 260 212 261
f 260 231 230 212
f 212 230 211 262
f 261 212 262 263
f 19 259 20 23
f 259 258 261 20
f 20 261 263 264
f 23 20 264 24
f 24 264 25 41
f 264 263 265 25
f 25 265 266 267
f 41 25 267 42
f 263 262 210 265
f 262 211 209 210
f 210 209 206 268
f 265 210 268 266
f 266 268 205 269
f 268 206 204 205
f 205 204 188 270
f 269 205 270 272
f 42 267 46 45
f 267 266 269 46
f 46 269 272 274
f 45 46 274 47
f 47 274 273 63
f 274 272 275 273
f 273 275 276 279
f 63 273 279 64
f 272 270 271 275
f 270 188 187 271
f 271 187 184 280
f 275 271 280 276
f 276 280 277 281
f 280 184 183 277
f 277 183 168 282
f 281 277 282 284
f 64 279 278 67
f 279 276 281 278
f 278 281 284 286
f 67 278 286 68
f 68 286 285 83
f 286 284 287 285
f 285 287 288 291
f 83 285 291 84
f 284 282 283 287
f 282 168 167 283
f 283 167 164 292
f 287 283 292 288
f 288 292 289 293
f 292 164 163 289
f 289 163 148 294
f 293 289 294 296
f 84 291 290 87
f 291 288 293 290
f 290 293 296 298
f 87 290 298 88
f 88 298 297 103
f 298 296 299 297
f 297 299 300 303
f 103 297 303 104
f 296 294 295 299
f 294 148 147 295
f 295 147 144 304
f 299 295 304 300
f 300 304 301 305
f 304 144 143 301
f 301 143 128 127
f 305 301 127 124
f 104 303 302 107
f 303 300 305 302
f 302 305 124 123
f 107 302 123 108
f 241 243 229 239
f 243 250 306 229
f 229 306 307 308
f 239 229 308 228
f 250 256 5 306
f 256 1 4 5
f 5 4 13 309
f 306 5 309 307
f 307 309 14 310
f 309 13 30 14
f 14 30 32 311
f 310 14 311 312
f 228 308 221 222
f 308 307 310 221
f 221 310 312 313
f 222 221 313 220
f 220 313 218 217
f 313 312 314 218
f 218 314 315 316
f 217 218 316 203
f 312 311 33 314
f 311 32 34 33
f 33 34 40 317
f 314 33 317 315
f 315 317 53 318
f 317 40 52 53
f 53 52 55 319
f 318 53 319 321
f 203 316 197 196
f 316 315 318 197
f 197 318 321 323
f 196 197 323 195
f 195 323 322 193
f 323 321 324 322
f 322 324 325 328
f 193 322 328 182
f 321 319 320 324
f 319 55 56 320
f 320 56 62 329
f 324 320 329 325
f 325 329 326 330
f 329 62 73 326
f 326 73 75 331
f 330 326 331 333
f 182 328 327 176
f 328 325 330 327
f 327 330 333 335
f 176 327 335 175
f 175 335 334 173
f 335 333 336 334
f 334 336 337 340
f 173 334 340 162
f 333 331 332 336
f 331 75 76 332
f 332 76 82 341
f 336 332 341 337
f 337 341 338 342
f 341 82 93 338
f 338 93 95 343
f 342 338 343 345
f 162 340 339 156
f 340 337 342 339
f 339 342 345 347
f 156 339 347 155
f 155 347 346 153
f 347 345 348 346
f 346 348 349 352
f 153 346 352 142
f 345 343 344 348
f 343 95 96 344
f 344 96 102 353
f 348 344 353 349
f 349 353 350 354
f 353 102 111 350
f 350 111 113 115
f 354 350 115 122
f 142 352 351 135
f 352 349 354 351
f 351 354 122 131
f 135 351 131 133