Transform3D#

class ansys.edb.core.utility.transform3d.Transform3D(msg)#

Represents a 3D transformation.

Parameters:
anchorPoint3DLike
rot_axis_fromPoint3DLike
rot_axis_toPoint3DLike
rot_anglestr, int, float, complex, Value

Rotation angle, specified counter-clockwise in radians, from the rot_axis_from parameter towards the rot_axis_to parameter.

offsetPoint3DLike
mirrorbool

Mirror against the YZ plane.

Methods

Transform3D.create_copy(transform3d)

Create a 3D transformation by copying another 3D transformation.

Transform3D.create_from_angle(zyx_decomposition)

Create a 3D transformation from ZYX decomposition.

Transform3D.create_from_axis(x, y, z)

Create a 3D transformation with a rotation matrix from three axes.

Transform3D.create_from_axis_and_angle(axis, ...)

Create a 3D transformation with the given axis and angle.

Transform3D.create_from_center_scale(center, ...)

Create a 3D transformation for scaling about a point.

Transform3D.create_from_matrix(matrix)

Create a 3D transformation from general matrix data.

Transform3D.create_from_offset(offset)

Create a 3D transformation with an offset.

Transform3D.create_from_one_axis_to_another(...)

Create a 3D transformformation with rotation from an axis to an axis.

Transform3D.create_from_transform_2d(...)

Create a 3D transformation with transform data.

Transform3D.create_identity()

Create an identity transformation 3D matrix.

Transform3D.invert()

Invert the 3D transformation.

Transform3D.is_equal(other_transform, ...)

Equality check for two #D transformations.

Transform3D.is_identity(eps, rotation)

Get identity of the 3D transformation.

Transform3D.transform_point(point)

Get the transform point of the 3D transformation.

Transform3D.transpose()

Transpose the 3D transformation.

Attributes

Transform3D.axis

list of Point3DLike: Axis.

Transform3D.id

int: Unique ID of the EDB object.

Transform3D.is_null

bool: Flag indicating if the object exists in the database.

Transform3D.matrix

list of list of floats : Transformation matrix as a 2D 4x4 array.

Transform3D.msg

EDBObjMessage: Protobuf message that represents the object's ID.

Transform3D.scaling

Point3DLike: Scaling.

Transform3D.shift

Point3DLike: Shift.

Transform3D.z_y_x_rotation

Point3DLike: ZYX rotation.