Transform#

class ansys.edb.core.utility.transform.Transform(msg)#

Represents a transformation.

Methods

Transform.create(scale, angle, mirror, ...)

Create a transform object.

Transform.transform_point(point)

Transform a point.

Transform.transform_polygon(polygon)

Transform a polygon.

Attributes

Transform.id

int: Unique ID of the EDB object.

Transform.is_identity

bool: Flag indicating if the transformation is an identity transformation.

Transform.is_null

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

Transform.mirror

bool: Mirror property.

Transform.msg

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

Transform.offset_x

Value: X offset property.

Transform.offset_y

Value: Y offset property.

Transform.rotation

Value: Rotation property.

Transform.scale

Value: Scale property.