Transform
Overview
Transform is a class in Aspose.3D FOSS for Python.
Inherits from: A3DObject.
Transform.set_translation sets the translation components (tx, ty, tz) and returns the Transform.
This class provides 10 methods for working with Transform objects in Python programs.
Available methods include: __init__, set_euler_angles, set_geometric_rotation, set_geometric_scaling, set_geometric_translation, set_post_rotation, set_pre_rotation, set_rotation, set_scale, set_translation.
All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: euler_angles, geometric_rotation, geometric_scaling, geometric_translation, post_rotation, pre_rotation, and 8 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
translation | Vector3 | Read | Gets the translation. |
scaling | Vector3 | Read | Gets the scaling. |
rotation | Quaternion | Read | Gets the rotation. |
euler_angles | Vector3 | Read | Gets the euler angles. |
scaling_offset | Vector3 | Read | Gets the scaling offset. |
scaling_pivot | Vector3 | Read | Gets the scaling pivot. |
rotation_offset | Vector3 | Read | Gets the rotation offset. |
rotation_pivot | Vector3 | Read | Gets the rotation pivot. |
pre_rotation | Vector3 | Read | Gets the pre rotation. |
post_rotation | Vector3 | Read | Gets the post rotation. |
geometric_translation | Vector3 | Read | Gets the geometric translation. |
geometric_scaling | Vector3 | Read | Gets the geometric scaling. |
geometric_rotation | Vector3 | Read | Gets the geometric rotation. |
transform_matrix | Matrix4 | Read | Gets the transform matrix. |
Methods
| Signature | Description |
|---|---|
__init__(name: str) | |
set_translation(tx: float, ty: float, tz: float) → 'Transform' | Sets the translation value. |
set_scale(sx: float, sy: float, sz: float) → 'Transform' | Sets the scale value. |
set_euler_angles(rx: float, ry: float, rz: float) → 'Transform' | Sets the euler angles value. |
set_rotation(rw: float, rx: float, ry: float, rz: float) → 'Transform' | Sets the rotation value. |
set_pre_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets the pre rotation value. |
set_post_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets the post rotation value. |
set_geometric_translation(x: float, y: float, z: float) → 'Transform' | Sets the geometric translation value. |
set_geometric_scaling(sx: float, sy: float, sz: float) → 'Transform' | Sets the geometric scaling value. |
set_geometric_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets the geometric rotation value. |