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

NameTypeAccessDescription
translationVector3ReadReturns a Vector3 representing the node’s translation; calling translation(value) assigns a new Vector3 offset
scalingVector3Read
rotationQuaternionReadIs the current rotation expressed as a quaternion
euler_anglesVector3ReadIs the current rotation expressed as Euler angles
scaling_offsetVector3ReadIs the offset applied to the scaling pivot
scaling_pivotVector3ReadIs the pivot point around which scaling occurs
rotation_offsetVector3ReadIs the offset applied to the rotation pivot
rotation_pivotVector3ReadIs the pivot point around which rotation occurs
pre_rotationVector3ReadIs the pre‑rotation Euler angles applied before the main rotation
post_rotationVector3ReadIs the post‑rotation Euler angles applied after the main rotation
geometric_translationVector3ReadIs the geometric translation vector
geometric_scalingVector3ReadIs the geometric scaling vector
geometric_rotationVector3ReadIs the geometric rotation vector
transform_matrixMatrix4ReadIs the 4×4 matrix representing the combined transform

Methods

SignatureDescription
__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