| 1 |
NAME SoDecomposeMatrix SoDecmpsMx "" { |
| 2 |
decomposes transformation matrices into values |
| 3 |
for translation, rotation, and scale |
| 4 |
} |
| 5 |
|
| 6 |
DESC { |
| 7 |
This engine takes as input a transformation matrix and a center of transformation. |
| 8 |
As output the engine produces the translation, rotation and scale values |
| 9 |
derived from the matrix. |
| 10 |
\p |
| 11 |
The input fields can have multiple values, allowing the engine to |
| 12 |
decompose several matrices in parallel. |
| 13 |
One of the inputs may have more values than the other. In that case, |
| 14 |
the last value of the shorter input will be repeated as necessary. |
| 15 |
} |
| 16 |
|
| 17 |
INCLUDE engines/SoCompose.h |
| 18 |
|
| 19 |
INPUT matrix { The 4x4 transformation matrix. } |
| 20 |
INPUT center { The center of transformations. } |
| 21 |
|
| 22 |
OUTPUT translation { Derived translation in x, y, and z. } |
| 23 |
OUTPUT rotation { Derived rotation. } |
| 24 |
OUTPUT scaleFactor { Derived scale values in x, y, and z. } |
| 25 |
OUTPUT scaleOrientation { Derived rotational space for scaling. } |
| 26 |
|
| 27 |
METHOD Create SoDecomposeMatrix() { Constructor } |
| 28 |
|
| 29 |
ALSO { SoComposeMatrix, SoEngineOutput } |