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 14 methods for working with Transform objects in Python programs. Available methods include: __init__, find_property, get_property, remove_property, set_euler_angles, set_geometric_rotation, set_geometric_scaling, set_geometric_translation, set_post_rotation, set_pre_rotation, set_property, set_rotation, and 2 additional methods. All public 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, name, post_rotation, and 10 more.

Properties

NameTypeAccessDescription
translationVector3Read/WriteGets or sets the translation.
scalingVector3Read/WriteGets or sets the scaling.
rotationQuaternionRead/WriteGets or sets the rotation.
euler_anglesVector3Read/WriteGets or sets the euler angles.
scaling_offsetVector3Read/WriteGets or sets the scaling offset.
scaling_pivotVector3Read/WriteGets or sets the scaling pivot.
rotation_offsetVector3Read/WriteGets or sets the rotation offset.
rotation_pivotVector3Read/WriteGets or sets the rotation pivot.
pre_rotationVector3Read/WriteGets or sets the pre rotation.
post_rotationVector3Read/WriteGets or sets the post rotation.
geometric_translationVector3Read/WriteGets or sets the geometric translation.
geometric_scalingVector3Read/WriteGets or sets the geometric scaling.
geometric_rotationVector3Read/WriteGets or sets the geometric rotation.
transform_matrixMatrix4Read/WriteGets or sets the transform matrix.
namestrRead/WriteGets or sets the name.
propertiesPropertyCollectionReadGets the properties.

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.
find_property(property_name: str)
get_property(property: str)
set_property(property: str, value)Sets the property value.
remove_property(property)

See Also

 English