Commit edbde59
Remove Maya style tangents from time splines and add tangent
conversion functions.
Remove Maya style tangent values from the time spline (and related)
code. Tangents are now only stored in "standard" format which is a
typed slope and a TsTime (aka doule) width. Maya style tangent values
which have a height instead of width, stored values scaled by 3, and
which invert the height of the pre-tangent are no longer used
internally.
To continue to support Maya we have added TsConvertToStandardTangent
and TsConvertFromStandardTangent. These functions take standard slope
and width values and perform optional conversions on them that can
convert between slope and height values, scale by 3, and/or negate the
slope or height value.
Note that Hermite curves do not have an explicit tangent width value.
Instead, the value used is 1/3 the width of the segment to which they
belong. The conversion functions, however, require a width in order to
convert between slope and height values. It is up to the caller to
provide a width value to the conversion routines, even when working
with Hermite curves.
(Internal change: 2343223)
(Internal change: 2343286)1 parent 4033978 commit edbde59
25 files changed
Lines changed: 949 additions & 768 deletions
File tree
- pxr
- base/ts
- testenv
- usd
- sdf
- testenv
- testSdfParsing.testenv
- baseline
- usd/testenv
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
168 | 180 | | |
169 | 181 | | |
170 | 182 | | |
| |||
204 | 216 | | |
205 | 217 | | |
206 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
103 | | - | |
104 | | - | |
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
| |||
121 | 117 | | |
122 | 118 | | |
123 | 119 | | |
124 | | - | |
125 | | - | |
| 120 | + | |
126 | 121 | | |
127 | 122 | | |
128 | 123 | | |
| |||
273 | 268 | | |
274 | 269 | | |
275 | 270 | | |
276 | | - | |
277 | | - | |
278 | 271 | | |
279 | 272 | | |
280 | 273 | | |
| |||
293 | 286 | | |
294 | 287 | | |
295 | 288 | | |
296 | | - | |
297 | | - | |
| 289 | + | |
298 | 290 | | |
299 | 291 | | |
300 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 310 | | |
355 | 311 | | |
356 | 312 | | |
| |||
424 | 380 | | |
425 | 381 | | |
426 | 382 | | |
427 | | - | |
428 | | - | |
| 383 | + | |
429 | 384 | | |
430 | 385 | | |
431 | 386 | | |
| |||
444 | 399 | | |
445 | 400 | | |
446 | 401 | | |
447 | | - | |
448 | | - | |
| 402 | + | |
449 | 403 | | |
450 | 404 | | |
451 | 405 | | |
| |||
1248 | 1202 | | |
1249 | 1203 | | |
1250 | 1204 | | |
1251 | | - | |
1252 | | - | |
| 1205 | + | |
1253 | 1206 | | |
1254 | 1207 | | |
1255 | 1208 | | |
| |||
1275 | 1228 | | |
1276 | 1229 | | |
1277 | 1230 | | |
1278 | | - | |
1279 | | - | |
| 1231 | + | |
1280 | 1232 | | |
1281 | 1233 | | |
1282 | 1234 | | |
| |||
0 commit comments