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

NameTypeAccessDescription
translationVector3ReadGets the translation.
scalingVector3ReadGets the scaling.
rotationQuaternionReadGets the rotation.
euler_anglesVector3ReadGets the euler angles.
scaling_offsetVector3ReadGets the scaling offset.
scaling_pivotVector3ReadGets the scaling pivot.
rotation_offsetVector3ReadGets the rotation offset.
rotation_pivotVector3ReadGets the rotation pivot.
pre_rotationVector3ReadGets the pre rotation.
post_rotationVector3ReadGets the post rotation.
geometric_translationVector3ReadGets the geometric translation.
geometric_scalingVector3ReadGets the geometric scaling.
geometric_rotationVector3ReadGets the geometric rotation.
transform_matrixMatrix4ReadGets the transform matrix.

Methods

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

See Also