Class SoDecomposeMatrix
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.engines.SoEngine
com.openinventor.inventor.engines.SoDecomposeMatrix
- All Implemented Interfaces:
SafeDisposable
Decomposes transformation matrices into values for translation, rotation, and scale.
This engine takes as input a transformation matrix and a center of transformation. As output the engine produces the translation, rotation and scale values derived from the matrix.
The input fields can have multiple values, allowing the engine to decompose several matrices in parallel. One of the inputs may have more values than the other. In that case, the last value of the shorter input will be repeated as necessary.
File format/default:
DecomposeMatrix {
matrix | 1 0 0 0 |
0 1 0 0 | |
0 0 1 0 | |
0 0 0 1 | |
center | 0 0 0 |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoMFVec3f
The center of transformations.final SoMFMatrix
The 4x4 transformation matrix.final SoEngineOutput
(SoMFRotation
) Derived rotation.final SoEngineOutput
(SoMFVec3f
) Derived scale values in x, y, and z.final SoEngineOutput
(SoMFRotation
) Derived rotational space for scaling.final SoEngineOutput
(SoMFVec3f
) Derived translation in x, y, and z.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.engines.SoEngine
copy, getByName, getOutput, getOutputName
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable, touch
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
matrix
The 4x4 transformation matrix. -
center
The center of transformations. -
translation
(SoMFVec3f
) Derived translation in x, y, and z. -
rotation
(SoMFRotation
) Derived rotation. -
scaleFactor
(SoMFVec3f
) Derived scale values in x, y, and z. -
scaleOrientation
(SoMFRotation
) Derived rotational space for scaling.
-
-
Constructor Details
-
SoDecomposeMatrix
public SoDecomposeMatrix()Default Constructor.
-