Commit c9ea608
BUG: Fix Computation of Interaction Transform Used in PositionProp
This commit fixes the incorrect and unnecessary conversion from axis-angle
to quaternion inadvertently introduced in 503ef1d ("ENH: Add VR interactor
style class for transforming objects in MRML", 2018-08-31).
The additional conversion, introduced in the mentioned commit, was redundant
since the event orientations (internally set using
`vtkVRRenderWindowInteractor::ConvertPoseToWorldCoordinates`, itself introduced
in Kitware/VTK@803d3a327d, "ENH: Use pose matrices instead of camera parameters for
VR controllers", 2018-09-25) are already in quaternion format.
The redundant conversion was leading to an invalid transformation of the
selected object.
Reported-by: Lucas Gandel <[email protected]>
Co-authored-by: David Allemang <[email protected]>1 parent d504181 commit c9ea608
File tree
1 file changed
+25
-11
lines changed- VirtualReality/MRML
1 file changed
+25
-11
lines changedLines changed: 25 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | 284 | | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| 290 | + | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
307 | 306 | | |
308 | 307 | | |
| 308 | + | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
311 | 319 | | |
| 320 | + | |
| 321 | + | |
312 | 322 | | |
| 323 | + | |
| 324 | + | |
313 | 325 | | |
| 326 | + | |
| 327 | + | |
314 | 328 | | |
315 | 329 | | |
316 | 330 | | |
| |||
0 commit comments