invert_cs#

Modeler3D.invert_cs(coordinate_system: str | CoordinateSystem, to_global: bool = False) tuple[list, Quaternion]#

Get the inverse translation and the conjugate quaternion of the input coordinate system.

By defining a new coordinate system with this information, the reference coordinate system of the input coordinate system is obtained.

Parameters:
coordinate_systemstr, CoordinateSystem

Name of the destination reference system. A CoordinateSystem object can also be used.

to_globalbool, optional

Whether to compute the inverse transformation of the input coordinate system with respect to the global coordinate system. The default is False.

Returns:
tuple

List of the [x, y, z] coordinates of the origin and the quaternion defining the coordinate system.

Examples

>>> from ansys.aedt.core.modeler.cad.primitives import GeometryModeler
>>> obj = GeometryModeler()
>>> obj.invert_cs(coordinate_system="Global")