Transform
Overview
Transform is a class in Aspose.3d for Python.
Inherits from: A3DObject.
Transform supports full 3‑D transformation pipelines, including translation, scaling, rotation, Euler angles, and separate pre‑/post‑rotation and pivot offsets.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
translation | Vector3 | Read | Returns a Vector3 representing the node’s translation; calling translation(value) assigns a new Vector3 offset |
scaling | Vector3 | Read | |
rotation | Quaternion | Read | Is the current rotation expressed as a quaternion |
euler_angles | Vector3 | Read | Is the current rotation expressed as Euler angles |
scaling_offset | Vector3 | Read | Is the offset applied to the scaling pivot |
scaling_pivot | Vector3 | Read | Is the pivot point around which scaling occurs |
rotation_offset | Vector3 | Read | Is the offset applied to the rotation pivot |
rotation_pivot | Vector3 | Read | Is the pivot point around which rotation occurs |
pre_rotation | Vector3 | Read | Is the pre‑rotation Euler angles applied before the main rotation |
post_rotation | Vector3 | Read | Is the post‑rotation Euler angles applied after the main rotation |
geometric_translation | Vector3 | Read | Is the geometric translation vector |
geometric_scaling | Vector3 | Read | Is the geometric scaling vector |
geometric_rotation | Vector3 | Read | Is the geometric rotation vector |
transform_matrix | Matrix4 | Read | Is the 4×4 matrix representing the combined transform |
Methods
| Signature | Description |
|---|---|
__init__(name: str) | |
set_translation(tx: float, ty: float, tz: float) → 'Transform' | Sets the translation components to tx, ty, tz |
set_scale(sx: float, sy: float, sz: float) → 'Transform' | Sets the scaling factors to sx, sy, sz |
set_euler_angles(rx: float, ry: float, rz: float) → 'Transform' | Sets rotation using Euler angles rx, ry, rz |
set_rotation(rw: float, rx: float, ry: float, rz: float) → 'Transform' | Sets rotation using quaternion components rw, rx, ry, rz |
set_pre_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets pre‑rotation Euler angles applied before the main rotation |
set_post_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets post‑rotation Euler angles applied after the main rotation |
set_geometric_translation(x: float, y: float, z: float) → 'Transform' | Sets the geometric translation offset to x, y, z |
set_geometric_scaling(sx: float, sy: float, sz: float) → 'Transform' | Sets the geometric scaling offset to sx, sy, sz |
set_geometric_rotation(rx: float, ry: float, rz: float) → 'Transform' | Sets the geometric rotation offset to rx, ry, rz |