| 1 |
NAME SoComposeMatrix SoCmpsMx "" { |
| 2 |
composes a transformation matrix |
| 3 |
} |
| 4 |
|
| 5 |
DESC { |
| 6 |
This engine has inputs that specify values for translation, rotation, |
| 7 |
scale, and center of transformation. |
| 8 |
As output, it produces a transformation matrix that |
| 9 |
transforms objects into the space specified by the scale, rotation, |
| 10 |
and translation inputs (in that order). |
| 11 |
\p |
| 12 |
The input fields can have multiple values, allowing the engine to |
| 13 |
compose several matrices in parallel. |
| 14 |
Some inputs may have more values than others. In such cases, |
| 15 |
the last value of the shorter inputs will be repeated as necessary. |
| 16 |
} |
| 17 |
|
| 18 |
INCLUDE engines/SoCompose.h |
| 19 |
|
| 20 |
INPUT translation { Translation in x, y, and z. } |
| 21 |
INPUT rotation { Rotation. } |
| 22 |
INPUT scaleFactor { Scale factors in x, y, and z. } |
| 23 |
INPUT scaleOrientation { Rotational space for scaling. } |
| 24 |
INPUT center { Center point for scaling and rotating. } |
| 25 |
|
| 26 |
OUTPUT matrix { Transformation matrix that transforms from |
| 27 |
object space into the space specified by the inputs. } |
| 28 |
|
| 29 |
METHOD Create SoComposeMatrix() { Constructor } |
| 30 |
|
| 31 |
ALSO { SoDecomposeMatrix, SoEngineOutput } |