Adding Transformation to the Node
Contents[ Hide ]
Aspose.3D for .NET offers to rotate objects in 3D space. There are three ways to define object’s rotation in 3D space, Euler angles, Quaternion and Custom Matrix, all of them are supported by the Transform class.
TSR (Translation/Scaling/Rotation) are most commonly used in 3D scenario, we provided a class Transform to access these in Aspose.3D. Affine transformations include:
- Shear mapping
- Squeeze mapping
The Mesh class object is being used in the code. We can create a Mesh class object as narrated there.
Rotate by Quaternion
Rotate by Euler Angles
Custom Transformation Matrix
We can also use Matrix directly: